extend-select
and additional ruff rules
#303
Workflow file for this run
This file contains hidden or 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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
allow-prereleases: true | |
- name: Install | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: Show environment | |
run: env | |
- name: Library tests | |
run: | | |
mkdir tmp | |
cd tmp | |
pytest --doctest-plus --ignore-glob="__config__.py" --pyargs nipy | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: Show environment | |
run: env | |
- name: Library tests | |
run: | | |
mkdir tmp | |
cd tmp | |
pytest -s -c ../bench.ini --pyargs nipy |