From 3c507359cc9d4f5531a858bace66cbd41ab44832 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 31 Oct 2024 10:07:44 +0100 Subject: [PATCH] ci: use 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 47a43a65..b6df253f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,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 @@ -61,8 +64,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 @@ -77,8 +78,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