Skip to content

Commit

Permalink
parameterize COVERAGE_PYTHON_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
c0state committed Sep 5, 2024
1 parent 19430d9 commit a18ca6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ on:
branches: ["master"]
workflow_dispatch:

env:
COVERAGE_PYTHON_VERSION: "3.12"

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
env:
COVERAGE_PYTHON_VERSION: "3.12"

strategy:
matrix:
Expand All @@ -39,7 +40,7 @@ jobs:
# parsing errors in older versions for modern code.
- uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: ${{ env.COVERAGE_PYTHON_VERSION }}

- name: "Generate code coverage"
if: "contains(env.COVERAGE_PYTHON_VERSION, matrix.python-version)"
Expand All @@ -62,7 +63,7 @@ jobs:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: ${{ env.COVERAGE_PYTHON_VERSION }}
- name: "Install build, check-wheel-content, and twine"
run: "python -m pip install build twine check-wheel-contents"
- name: "Build package"
Expand Down

0 comments on commit a18ca6c

Please sign in to comment.