Try to fix CI problem. #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
name: CI-Ubuntu | |
on: | |
push: | |
branches: [ '*' ] | |
paths-ignore: # Don't trigger on files that are updated by the CI | |
- README.md | |
pull_request: | |
branches: [ '*' ] | |
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: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@main | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install the package | |
run: | | |
# export SETUPTOOLS_ENABLE_FEATURES="legacy-editable" | |
python -m pip install --no-build-isolation --editable . | |
# Show f2py compiler info for debug | |
f2py -c --help-fcompiler | |
- name: Run tests | |
run: | | |
python -m pypolsys.test |