Skip to content

Commit 0a72fc4

Browse files
committed
feat: First Public Release
1 parent c058a09 commit 0a72fc4

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# .github/workflows/tests.yml
12
name: CI
23

34
on:
@@ -8,10 +9,16 @@ on:
89

910
jobs:
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

0 commit comments

Comments
 (0)