@@ -13,13 +13,12 @@ jobs:
13
13
fail-fast : false
14
14
matrix :
15
15
os : [ ubuntu-latest, windows-latest ]
16
- python-version : [ "3.11", "3.12" ]
16
+ python-version : [ "3.11" ]
17
17
18
18
steps :
19
19
- name : Check out repository
20
20
uses : actions/checkout@v4
21
21
22
- # Install uv
23
22
- name : Install uv
24
23
run : curl -LsSf https://astral.sh/uv/install.sh | sh
25
24
if : runner.os != 'Windows'
@@ -33,41 +32,32 @@ jobs:
33
32
run : echo "$((Get-Item (Get-Command uv).Source).Directory.FullName)" | Out-File -FilePath $env:GITHUB_PATH -Append
34
33
if : runner.os == 'Windows'
35
34
36
- # Settings Python and install ALL dependencies
37
35
- name : Set up Python and install dependencies
38
36
run : |
39
37
uv venv -p ${{ matrix.python-version }}
40
38
uv pip install -e ".[dev]"
41
39
42
- # Step for Unix
43
- - name : Activate venv and run checks
44
- shell : bash
40
+ - name : Run Linting and Tests (Linux/macOS)
45
41
if : runner.os != 'Windows'
46
42
run : |
47
- source .venv/bin/activate
48
-
49
43
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/
53
46
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
55
49
56
- # Step for Windows
57
- - name : Activate venv and run checks (Windows)
58
- shell : pwsh
50
+ - name : Run Linting and Tests (Windows)
59
51
if : runner.os == 'Windows'
52
+ shell : pwsh
60
53
run : |
61
- .\.venv\Scripts\activate.ps1
62
-
63
54
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/
66
57
67
58
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
69
60
70
- # Load report
71
61
- name : Upload coverage reports to Codecov
72
62
uses : codecov/codecov-action@v5
73
63
with :
0 commit comments