Skip to content

Commit

Permalink
Update GitHub Actions workflow to support Python 3.12 and improve set…
Browse files Browse the repository at this point in the history
…up steps
  • Loading branch information
Jsakkos committed Dec 24, 2024
1 parent 14a6566 commit 8f70803
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,29 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install UV
run: |
python -m pip install --upgrade pip
pip install uv
- name: Install dependencies
run: |
uv venv
uv pip install ".[dev]"
uv pip install pytest pytest-cov
uv pip install -e ".[dev]"
uv tool install pytest pytest-cov
- name: Run tests with pytest and coverage
run: |
pytest tests/ --cov=lr_autotag --cov-report=xml
uv tool run pytest tests/ --cov=lr_autotag --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 8f70803

Please sign in to comment.