Skip to content

Commit

Permalink
Fix Python setup in test.yml Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Aug 26, 2024
1 parent 8f5e28f commit 8c5a7d7
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.6"
python-release: v3.6
python-impl: CPython
- python-version: "3.7"
python-release: v3.7
python-impl: CPython
Expand All @@ -29,9 +26,12 @@ jobs:
- python-version: "3.10"
python-release: v3.10
python-impl: CPython
- python-version: pypy-3.6
python-release: v3.6
python-impl: PyPy
- python-version: "3.11"
python-release: v3.11
python-impl: CPython
- python-version: "3.12"
python-release: v3.12
python-impl: CPython
- python-version: pypy-3.7
python-release: v3.7
python-impl: PyPy
Expand All @@ -41,19 +41,16 @@ jobs:
- python-version: pypy-3.9
python-release: v3.9
python-impl: PyPy
- python-version: pypy-3.10
python-release: v3.10
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Cache Python requirements
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys: ${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand All @@ -68,7 +65,7 @@ jobs:
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Upload to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name: test-python-${{ matrix.python-version }}
Expand All @@ -83,9 +80,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.6"
python-release: v3.6
python-impl: CPython
- python-version: "3.7"
python-release: v3.7
python-impl: CPython
Expand All @@ -97,6 +91,13 @@ jobs:
python-impl: CPython
- python-version: "3.10"
python-release: v3.10
python-impl: CPython
- python-version: "3.11"
python-release: v3.11
python-impl: CPython
- python-version: "3.12"
python-release: v3.12
python-impl: CPython
- python-version: pypy-3.7
python-release: v3.7
python-impl: PyPy
Expand All @@ -106,19 +107,16 @@ jobs:
- python-version: pypy-3.9
python-release: v3.9
python-impl: PyPy
- python-version: pypy-3.10
python-release: v3.10
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Cache Python requirements
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys: ${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand All @@ -133,7 +131,7 @@ jobs:
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Upload to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name: test-python-${{ matrix.python-version }}
Expand All @@ -153,7 +151,7 @@ jobs:
with:
submodules: true
- name: Setup Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build requirements
Expand Down Expand Up @@ -214,12 +212,14 @@ jobs:
environment: GitHub Releases
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
permissions:
id-token: write
name: Release
needs: upload
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Release a Changelog
uses: rasmus-saks/release-a-changelog-action@v1.0.1
uses: rasmus-saks/release-a-changelog-action@v1.2.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 8c5a7d7

Please sign in to comment.