-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (38 loc) · 966 Bytes
/
test.yml
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
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- snirf/**
- tests/**
pull_request:
branches:
- main
jobs:
build-linux:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 5
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt pytest pytest-cov
pip install --no-build-isolation -ve .
- run: pytest tests/test.py
- uses: codecov/codecov-action@v3
if: success()