Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions tests/test_select_gen.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import subprocess
import sys
from pathlib import Path
Expand All @@ -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,
Expand Down