From 2a74611056aa623e94df2a021f5ddb975b317738 Mon Sep 17 00:00:00 2001 From: Wolfgang Malgadey Date: Wed, 18 Feb 2026 22:57:53 +0100 Subject: [PATCH 1/5] used uv to install python --- .github/workflows/linting.yaml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index baa780b..7f39788 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -21,10 +21,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "uv" + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run ruff linter @@ -42,10 +39,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "uv" + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Check Python AST @@ -87,10 +81,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "uv" + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run pylint @@ -106,10 +97,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "uv" + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run yamllint @@ -125,10 +113,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "uv" + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿ— Set up Node.js From e90cbca9cd2c081b7877be70abf6d27804306a7e Mon Sep 17 00:00:00 2001 From: Wolfgang Malgadey Date: Wed, 18 Feb 2026 22:14:09 +0000 Subject: [PATCH 2/5] add copilot suggestions --- .github/workflows/linting.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 7f39788..71c3143 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -20,7 +20,6 @@ jobs: - name: ๐Ÿ— Set up uv uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync @@ -38,7 +37,6 @@ jobs: - name: ๐Ÿ— Set up uv uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync @@ -80,7 +78,6 @@ jobs: - name: ๐Ÿ— Set up uv uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync @@ -96,7 +93,6 @@ jobs: - name: ๐Ÿ— Set up uv uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync @@ -112,7 +108,6 @@ jobs: - name: ๐Ÿ— Set up uv uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync From c463aa1fc529e1a3cede6786575ebfc1a811cfe5 Mon Sep 17 00:00:00 2001 From: Wolfgang Malgadey Date: Wed, 18 Feb 2026 22:18:00 +0000 Subject: [PATCH 3/5] update test workflow --- .github/workflows/tests.yaml | 42 +++++++++++------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0539722..46b75a8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -20,22 +20,14 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry - - name: ๐Ÿ— Set up Python ${{ matrix.python }} - id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ matrix.python }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 + - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Run pytest - run: poetry run pytest --cov=tadoasync tests --cov-fail-under=95 + run: uv run pytest --cov=tadoasync tests --cov-fail-under=95 - name: โฌ†๏ธ Upload coverage artifact uses: actions/upload-artifact@v4.3.1 with: @@ -53,26 +45,18 @@ jobs: fetch-depth: 0 - name: โฌ‡๏ธ Download coverage data uses: actions/download-artifact@v4.1.4 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python - uses: actions/setup-python@v5.0.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + run: uv python install ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Process coverage results run: | - poetry run coverage combine coverage*/.coverage* - poetry run coverage xml -i + uv run coverage combine coverage*/.coverage* + uv run coverage xml -i - name: โœ… Enforce minimum coverage (95%) - run: poetry run coverage report -m --fail-under=95 + run: uv run coverage report -m --fail-under=95 - name: ๐Ÿš€ Upload coverage report uses: codecov/codecov-action@v4.1.0 with: From 642388646cad61f9fef59a4ca57fddf75533d5b8 Mon Sep 17 00:00:00 2001 From: Wolfgang Malgadey Date: Wed, 18 Feb 2026 22:22:38 +0000 Subject: [PATCH 4/5] update workflows to use uv --- .github/workflows/linting.yaml | 30 +++++++++++++++--------------- .github/workflows/tests.yaml | 12 ++++++------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 71c3143..bbf348f 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -17,10 +17,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run ruff linter @@ -34,10 +34,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Check Python AST @@ -75,10 +75,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run pylint @@ -90,10 +90,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿš€ Run yamllint @@ -105,10 +105,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install Python dependencies run: uv sync - name: ๐Ÿ— Set up Node.js diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 46b75a8..1dedcb2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -20,10 +20,10 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install dependencies run: uv sync - name: ๐Ÿš€ Run pytest @@ -45,10 +45,10 @@ jobs: fetch-depth: 0 - name: โฌ‡๏ธ Download coverage data uses: actions/download-artifact@v4.1.4 - - name: ๐Ÿ— Set up uv + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} uses: astral-sh/setup-uv@v7 - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - run: uv python install ${{ env.DEFAULT_PYTHON }} + with: + python-version: ${{ env.DEFAULT_PYTHON }} - name: ๐Ÿ— Install dependencies run: uv sync - name: ๐Ÿš€ Process coverage results From e81bf7d7bba1ddd7095d85cf21e203008da6d2df Mon Sep 17 00:00:00 2001 From: Wolfgang Malgadey Date: Wed, 18 Feb 2026 22:24:51 +0000 Subject: [PATCH 5/5] fixed typing workflow --- .github/workflows/typing.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/typing.yaml b/.github/workflows/typing.yaml index 40c4c9d..62f779a 100644 --- a/.github/workflows/typing.yaml +++ b/.github/workflows/typing.yaml @@ -17,19 +17,11 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry - - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} - id: python - uses: actions/setup-python@v5.0.0 + - name: ๐Ÿ— Install uv and set the Python version ${{ env.DEFAULT_PYTHON }} + uses: astral-sh/setup-uv@v7 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true - name: ๐Ÿ— Install dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Run mypy - run: poetry run mypy examples src tests + run: uv run mypy examples src tests