From cca4973e025e6b8e60fae2bc9ca18e786b09ced6 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 31 Oct 2024 10:11:21 +0100 Subject: [PATCH] Try job-wide env --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 087421c..6a1ca8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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