Skip to content

Commit

Permalink
chore: update ci actions
Browse files Browse the repository at this point in the history
- Update to current action versions
- Replace codecov bash uploader with the official action
  • Loading branch information
ajkerrigan committed Dec 13, 2024
1 parent 52db387 commit f516588
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- name: Linting
run: |
pip install black ruff
Expand All @@ -28,18 +28,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
cache: "poetry"
Expand All @@ -48,10 +48,13 @@ jobs:
run: poetry install

- name: Coverage run pytest
run: poetry run coverage run --source poetry_plugin_freeze -m pytest tests

- name: Coverage Generate XML
run: |
poetry run coverage xml && \
bash <(curl -s https://codecov.io/bash) -Z \
-f coverage.xml
poetry run coverage run --source poetry_plugin_freeze -m pytest tests
poetry run coverage xml
- name: Upload Code Coverage
uses: codecov/codecov-action@v5
if: contains(matrix.python-version, '3.13') && contains(matrix.os, 'ubuntu')
with:
files: ./coverage.xml
name: codecov

0 comments on commit f516588

Please sign in to comment.