-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.45 KB
/
ci-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
43
44
name: CI-Windows
on:
push:
branches: [ '*' ]
paths-ignore: # Don't trigger on files that are updated by the CI
- README.md
pull_request:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
# run at 02:01 on the 3rd of each month
- cron: '1 2 3 * *'
jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- uses: conda-incubator/setup-miniconda@main
with:
activate-environment: polsys_env
python-version: 3.11
auto-activate-base: false
miniconda-version: "latest"
auto-update-conda: true
add-pip-as-python-dependency: true
- shell: bash -l {0}
run: |
# Use conda to manage the building toolchain, but is now outdated
# https://numpy.org/doc/stable/f2py/windows/index.html
conda install m2w64-toolchain libpython
# numpy is required for pypolsys building. Better to install it with conda.
conda install numpy
- name: Build
shell: bash -l {0}
run: |
# Ignore `pyproject.toml` to avoid conda/pip mix in numpy version
python -m pip install --no-build-isolation --editable .
# Show f2py compiler info for debug
f2py -c --help-fcompiler
- name: Test
shell: bash -l {0}
run: |
python -m pypolsys.test