Skip to content

Commit 0097d8d

Browse files
committed
Add GitHub unit test workflow
1 parent 6f19f99 commit 0097d8d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python package
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ["3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: mamba-org/setup-micromamba@v2
19+
with:
20+
environment-file: environment.yml
21+
init-shell: >-
22+
bash
23+
cache-environment: false
24+
create-args: python=${{ matrix.python-version }}
25+
post-cleanup: 'all'
26+
- name: Print Python version
27+
run: |
28+
python --version
29+
- name: Run pytest
30+
run: |
31+
pytest

0 commit comments

Comments
 (0)