@@ -11,10 +11,10 @@ jobs:
1111 name : Run tests with pytest
1212 runs-on : ${{ matrix.os }}
1313 strategy :
14+ fail-fast : false
1415 matrix :
15- os : ["ubuntu-latest"]
16+ os : ["ubuntu-latest", "windows-latest" ]
1617 python-version : ["3.10", "3.11", "3.12", "3.13"]
17- fail-fast : false
1818
1919 steps :
2020 - uses : actions/checkout@v4
@@ -25,24 +25,34 @@ jobs:
2525 python-version : ${{ matrix.python-version }}
2626 allow-prereleases : true
2727
28- - name : Create and activate a virtual environment (Unix)
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v6
30+
31+ - name : Create virtual environment
32+ run : uv venv .venv
33+
34+ - name : Add venv to PATH (Linux/macOS)
35+ if : runner.os != 'Windows'
2936 run : |
30- curl -LsSf https://astral.sh/uv/install.sh | sh
31- uv venv .venv
3237 echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
3338 echo "$PWD/.venv/bin" >> $GITHUB_PATH
3439
35- # Install dependencies using uv pip
40+ - name : Add venv to PATH (Windows)
41+ if : runner.os == 'Windows'
42+ shell : pwsh
43+ run : |
44+ "VIRTUAL_ENV=.venv" >> $env:GITHUB_ENV
45+ "$pwd\.venv\Scripts" >> $env:GITHUB_PATH
46+
3647 - name : Install dependencies
3748 run : make install-no-pre-commit
3849
39- # Run tests with coverage
4050 - name : Run tests under coverage
51+ shell : bash
4152 run : |
4253 coverage run --source=model2vec -m pytest
4354 coverage report
4455
45- # Upload results to Codecov
4656 - name : Upload results to Codecov
4757 uses : codecov/codecov-action@v4
4858 with :
0 commit comments