Skip to content

Test on windows

Test on windows #72

Workflow file for this run

name: Python tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
defaults:
run:
# Needed for setup-miniconda
shell: bash -el {0}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: conda-env.yml
channels: conda-forge
- name: Install pytest
run: |
conda install pytest --yes
- name: Run tests
run: |
python -m pytest