Skip to content

Merge pull request #199 from NeLy-EPFL/fix-ci-cache #25

Merge pull request #199 from NeLy-EPFL/fix-ci-cache

Merge pull request #199 from NeLy-EPFL/fix-ci-cache #25

name: Unit tests (Windows)
on: [push]
env:
SKIP_RENDERING: "true"
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ["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: |
pip install --upgrade pip
pip cache purge
pip install "flyvision @ https://github.com/nely-epfl/flyvis/archive/refs/heads/main.zip"
pip cache purge
pip install -e .[dev,examples]
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py38 .
- name: Test with pytest
run: |
python -m pytest