-
-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (33 loc) · 835 Bytes
/
ci.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
name: Run tests
on:
pull_request:
push:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: Test Suite
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/conda-setup
with:
python-version: ${{ matrix.python-version }}
extras: "dev"
- name: Test environment conda package list
shell: bash -l {0}
run: |
conda list
- name: Run unit tests
shell: bash -l {0}
run: |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
pytest -v 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"