File: test.yml

package info (click to toggle)
nipy 0.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,392 kB
  • sloc: python: 39,094; ansic: 30,931; makefile: 228; sh: 93
file content (63 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
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