Skip to content

Commit

Permalink
Add CI for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed May 30, 2024
1 parent 4c603d8 commit 097f13b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI on Windows

on:
# Run daily at 1:23 UTC
schedule:
- cron: '23 1 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install uv
uv pip install --system --upgrade pip setuptools wheel
uv pip install --system --upgrade '.[all,test]'
- name: List installed Python packages
run: python -m pip list

- name: Test with pytest and coverage
# FIXME: ignore tests/test_scripts.py as runner breaks on Windows currently
run: |
coverage run --module pytest --ignore tests/test_scripts.py --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
- name: Coverage report for core project
run: |
coverage report
coverage xml

0 comments on commit 097f13b

Please sign in to comment.