File: test.yml

package info (click to toggle)
nitime 0.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,532 kB
  • sloc: python: 10,162; makefile: 110; sh: 41
file content (55 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
    continue-on-error: true
    strategy:
      matrix:
        # We test NumPy dev on 3.11
        python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
        requires: ['requirements.txt']
        include:
          - python-version: '3.10'
            requires: 'min-requirements.txt'

    steps:
    - name: Checkout repo
      uses: actions/checkout@v5
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v6
      with:
        python-version: ${{ matrix.python-version }}
        allow-prereleases: true
    - name: Install
      run: |
        set -eo pipefail
        python -m pip install --upgrade pip
        python -m pip install -r ${{ matrix.requires }}
        python -m pip install -r requirements-dev.txt
        if [[ "${{ matrix.python-version }}" == "3.11" ]]; then
          python -m pip install --only-binary numpy --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy>=2.1.0.dev0"
        fi
        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