Skip to content

CI-Windows

CI-Windows #120

Workflow file for this run

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@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: polsys_env
python-version: 3.8
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.
# Sometime it fails when installed by pip thought `build-system` requirement from `pyproject.toml`
conda install numpy setuptools wheel
- name: Build
shell: bash -l {0}
run: |
# Ignore `pyproject.toml` to avoid conda/pip mix in numpy version
python -m pip install -e . --no-use-pep517
# Show f2py compiler info for debug
f2py -c --help-fcompiler
- name: Test
shell: bash -l {0}
run: |
python -m pypolsys.test