File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # .github/workflows/tests.yml
12name : CI
23
34on :
89
910jobs :
1011 tests :
11- runs-on : ubuntu-latest
12+ runs-on : ${{ matrix.os }}
1213 strategy :
14+ fail-fast : false
1315 matrix :
16+ os : [ ubuntu-latest, windows-latest ] # add macos-latest if you want
1417 python-version : [ "3.10", "3.11", "3.12" ]
18+
19+ env :
20+ PYTHONUTF8 : " 1" # stable UTF-8 across OSes
21+
1522 steps :
1623 - name : Checkout
1724 uses : actions/checkout@v4
@@ -20,21 +27,26 @@ jobs:
2027 uses : actions/setup-python@v5
2128 with :
2229 python-version : ${{ matrix.python-version }}
23- cache : " pip"
30+ cache : pip
31+ cache-dependency-path : |
32+ pyproject.toml
33+ requirements*.txt
34+
35+ # Optional: nudge Windows console to UTF-8 if you see garbled Greek
36+ - name : Ensure UTF-8 codepage (Windows)
37+ if : runner.os == 'Windows'
38+ run : chcp 65001
39+ shell : cmd
2440
2541 - name : Install
2642 run : |
2743 python -m pip install -U pip
28- pip install -e ".[dev]" || pip install -e .
29-
44+ pip install ".[dev]" || pip install .
3045 - name : Lint (ruff)
3146 run : ruff check .
32-
3347 - name : Format check (black)
3448 run : black --check .
35-
3649 - name : Type check (mypy)
3750 run : mypy src
38-
3951 - name : Tests
4052 run : pytest -q
You can’t perform that action at this time.
0 commit comments