Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +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 }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "uv"
- name: 🏗 Install Python dependencies
run: uv sync
- name: 🚀 Run ruff linter
Expand All @@ -38,14 +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 }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "uv"
- name: 🏗 Install Python dependencies
run: uv sync
- name: 🚀 Check Python AST
Expand Down Expand Up @@ -83,14 +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 }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "uv"
- name: 🏗 Install Python dependencies
run: uv sync
- name: 🚀 Run pylint
Expand All @@ -102,14 +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 }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "uv"
- name: 🏗 Install Python dependencies
run: uv sync
- name: 🚀 Run yamllint
Expand All @@ -121,14 +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 }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "uv"
- name: 🏗 Install Python dependencies
run: uv sync
- name: 🏗 Set up Node.js
Expand Down
38 changes: 11 additions & 27 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: 🏗 Install uv and set the Python version ${{ env.DEFAULT_PYTHON }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python }}
cache: "poetry"
- name: 🏗 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
python-version: ${{ 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:
Expand All @@ -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 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: 🚀 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:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading