Skip to content

Commit

Permalink
Update CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Nov 11, 2024
1 parent 7582fda commit a5eb309
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"]

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

- uses: "actions/setup-python@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
Expand All @@ -37,11 +37,12 @@ jobs:
run: "python -m tox"

- name: "Upload coverage data"
uses: "actions/upload-artifact@v3"
uses: "actions/upload-artifact@v4"
with:
name: "coverage-data"
name: coverage-data-${{ matrix.python-version }}
path: ".coverage.*"
if-no-files-found: "ignore"
include-hidden-files: true
if: runner.os == 'Linux'

coverage:
Expand All @@ -50,18 +51,19 @@ jobs:
runs-on: "ubuntu-latest"

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

- uses: "actions/setup-python@v4"
- uses: "actions/setup-python@v5"
with:
cache: "pip"
python-version: "3.11"
python-version: "3.13"

- run: "python -Im pip install --upgrade coverage[toml]"

- uses: "actions/download-artifact@v3"
- uses: "actions/download-artifact@v4"
with:
name: "coverage-data"
pattern: "coverage-data-*"
merge-multiple: true

- name: "Combine coverage"
run: |
Expand Down

0 comments on commit a5eb309

Please sign in to comment.