Skip to content

Commit

Permalink
Add test-windows job
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzheng committed Aug 24, 2023
1 parent baea538 commit f2ea990
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,38 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.xml
path: coverage.xml
test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.9"
python-include: "python3.9"
tox-env: "py39"
allow_failure: false
- python-version: "3.10"
python-include: "python3.10"
tox-env: "py310"
allow_failure: false
- python-version: "3.11"
python-include: "python3.11"
tox-env: "py11"
allow_failure: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- run: pip install "tox==4.2.4"
- if: ${{ github.ref_name == 'main' }}
run: sed -i 's/\[tool.setuptools_scm\]/\[tool.setuptools_scm\]\nlocal_scheme = "no-local-version"/' pyproject.toml
- env:
C_INCLUDE_PATH: ${{ env.pythonLocation }}/include/${{ matrix.python-include }}
run: tox run -e ${{ matrix.tox-env }}

0 comments on commit f2ea990

Please sign in to comment.