-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (43 loc) · 984 Bytes
/
tests.yaml
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
name: Tests
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'paper/**'
- 'notebooks/**'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test ${{matrix.os }} - ${{ matrix.env }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
env:
- requirements/39-ci.yml
- requirements/310-ci.yml
- requirements/311-ci.yml
- requirements/312-ci.yml
steps:
- uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ${{ matrix.env }}
miniforge-version: latest
- name: Log Environment
run: |
python -V
conda info
conda list
- name: Test ${{ matrix.env }}
run: |
pytest -v -n 2