diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19e696188c..9f7865d992 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: test: strategy: matrix: - os: [ ubuntu-latest ] + os: [ macos-latest ] python-version: - "3.8" - "3.9" @@ -85,7 +85,7 @@ jobs: - name: Store coverage files uses: actions/upload-artifact@v4 with: - name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }} + name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pydantic-version }} path: coverage include-hidden-files: true diff --git a/tests/test_select_gen.py b/tests/test_select_gen.py index 6d578f7708..8bc949146c 100644 --- a/tests/test_select_gen.py +++ b/tests/test_select_gen.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from pathlib import Path @@ -10,8 +11,8 @@ @needs_py39 def test_select_gen() -> None: result = subprocess.run( - [sys.executable, "scripts/generate_select.py"], - env={"CHECK_JINJA": "1"}, + [sys.executable, Path("scripts") / "generate_select.py"], + env={**os.environ, "CHECK_JINJA": "1"}, check=True, cwd=root_path, capture_output=True,