diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5628651a6..63d688fcf1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,17 +26,32 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: - - "3.7" - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" + os: ubuntu-latest + python-version: [ "3.12" ] pydantic-version: - pydantic-v1 - pydantic-v2 +# include: +# - os: ubuntu-22.04 +# python-version: "3.7" +# pydantic-version: pydantic-v1 +# - os: ubuntu-22.04 +# python-version: "3.7" +# pydantic-version: pydantic-v2 +# - os: macos-latest +# python-version: "3.8" +# pydantic-version: pydantic-v1 +# - os: ubuntu-latest +# python-version: "3.9" +# pydantic-version: pydantic-v2 +# - os: ubuntu-latest +# python-version: "3.10" +# pydantic-version: pydantic-v1 +# - os: macos-latest +# python-version: "3.11" +# pydantic-version: pydantic-v2 fail-fast: false +# runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Set up Python @@ -78,7 +93,7 @@ jobs: - name: Store coverage files uses: actions/upload-artifact@v4 with: - name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }} + name: coverage-${{ matrix.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,