Skip to content

Use meson-build and pyproject.toml #159

Use meson-build and pyproject.toml

Use meson-build and pyproject.toml #159

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@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.
# Sometime it fails when installed by pip thought `build-system` requirement from `pyproject.toml`
# Limit setuptools version because of numpy.distutils
conda install numpy "setuptools<60.0" 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