Skip to content

CI: Test minimum versions #74

CI: Test minimum versions

CI: Test minimum versions #74

Workflow file for this run

name: Test suite
on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
requires: ['requirements.txt']
include:
python-version: '3.8'

Check failure on line 28 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test suite

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 28, Col: 11): A mapping was not expected
requires: 'min-requirements.txt'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -r ${{ matrix.requires }}
python -m pip install -r requirements-dev.txt
python -m pip install .
- name: Lint
run: |
pipx run flake8 --ignore N802,N806,W504 --select W503 nitime/ tools/
- name: Test
run: |
mkdir ~/for_test && cd ~/for_test && pytest --pyargs nitime --cov-report term-missing --cov=nitime