Skip to content

Commit

Permalink
Try job-wide env
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Oct 31, 2024
1 parent 930c435 commit cca4973
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
# Created by the build-and-inspect-python-package action above.
python-version: ${{ fromJson(needs.build-package.outputs.python-versions) }}

env:
PYTHON: ${{ matrix.python-version }}

steps:
- name: Download pre-built packages
uses: actions/download-artifact@v4
Expand All @@ -62,8 +65,6 @@ jobs:
- uses: hynek/setup-cached-uv@v2

- name: Run tests
env:
PYTHON: ${{ matrix.python-version }}
run: >
uvx --with tox-uv tox run
--installpkg dist/*.whl
Expand All @@ -78,8 +79,6 @@ jobs:
if-no-files-found: ignore

- name: Check public API with Mypy
env:
PYTHON: ${{ matrix.python-version }}
run: >
uvx --with tox-uv tox run
--installpkg dist/*.whl
Expand Down

0 comments on commit cca4973

Please sign in to comment.