-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (39 loc) · 1.33 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 == 'pystatgen') || (github.event_name != 'schedule')
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9"]
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