Skip to content

Run tests using Zarr Python v3 #2995

Run tests using Zarr Python v3

Run tests using Zarr Python v3 #2995

Workflow file for this run

name: Windows
on:
push:
pull_request:
schedule:
# Run at the end of every day
- cron: "0 0 * * *"
jobs:
win_build:
# Scheduled runs only on the origin org
if: (github.event_name == 'schedule' && github.repository_owner == 'sgkit-dev') || (github.event_name != 'schedule')
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Miniconda with Python version ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge,numba
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# activate conda
shell: bash -l {0}
# conda can't install all dev tools, so we need to split it between conda and pip
run: |
conda install --file requirements.txt msprime
pip install -r requirements-dev.txt
- name: Test with pytest
# activate conda
shell: bash -l {0}
# To avoid: 'UserWarning: KMeans is known to have a memory leak on Windows with MKL, when there are less chunks than available threads. You can avoid it by setting the environment variable OMP_NUM_THREADS=1'
env:
OMP_NUM_THREADS: 1
run: |
pytest -v