@@ -13,13 +13,12 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 os : [ ubuntu-latest, windows-latest ]
16- python-version : [ "3.11", "3.12" ]
16+ python-version : [ "3.11" ]
1717
1818 steps :
1919 - name : Check out repository
2020 uses : actions/checkout@v4
2121
22- # Install uv
2322 - name : Install uv
2423 run : curl -LsSf https://astral.sh/uv/install.sh | sh
2524 if : runner.os != 'Windows'
@@ -33,41 +32,32 @@ jobs:
3332 run : echo "$((Get-Item (Get-Command uv).Source).Directory.FullName)" | Out-File -FilePath $env:GITHUB_PATH -Append
3433 if : runner.os == 'Windows'
3534
36- # Settings Python and install ALL dependencies
3735 - name : Set up Python and install dependencies
3836 run : |
3937 uv venv -p ${{ matrix.python-version }}
4038 uv pip install -e ".[dev]"
4139
42- # Step for Unix
43- - name : Activate venv and run checks
44- shell : bash
40+ - name : Run Linting and Tests (Linux/macOS)
4541 if : runner.os != 'Windows'
4642 run : |
47- source .venv/bin/activate
48-
4943 echo "--- Running Lint and Format Check ---"
50- uv run python -m ruff check src/ tests/
51- uv run python -m ruff format --check src/ tests/
52- echo "--- Running Tests with Coverage ---"
44+ .venv/bin/ruff check src/ tests/
45+ .venv/bin/ruff format --check src/ tests/
5346
54- uv run python -m coverage run -m unittest discover tests
47+ echo "--- Running Tests with Coverage ---"
48+ .venv/bin/coverage run -m unittest discover tests
5549
56- # Step for Windows
57- - name : Activate venv and run checks (Windows)
58- shell : pwsh
50+ - name : Run Linting and Tests (Windows)
5951 if : runner.os == 'Windows'
52+ shell : pwsh
6053 run : |
61- .\.venv\Scripts\activate.ps1
62-
6354 echo "--- Running Lint and Format Check ---"
64- uv run python -m ruff check src/ tests/
65- uv run python -m ruff format --check src/ tests/
55+ .\.venv\Scripts\ ruff.exe check src/ tests/
56+ .\.venv\Scripts\ ruff.exe format --check src/ tests/
6657
6758 echo "--- Running Tests with Coverage ---"
68- uv run python -m coverage run -m unittest discover tests
59+ .\.venv\Scripts\ coverage.exe run -m unittest discover tests
6960
70- # Load report
7161 - name : Upload coverage reports to Codecov
7262 uses : codecov/codecov-action@v5
7363 with :
0 commit comments