Skip to content

Commit 1254048

Browse files
committed
Add GH action for running tests automatically
1 parent 4350664 commit 1254048

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- uses: mamba-org/setup-micromamba@v1
18+
with:
19+
micromamba-version: '2.0.5-0' # any version from https://github.com/mamba-org/micromamba-releases
20+
environment-file: environment.yml
21+
init-shell: bash
22+
cache-environment: true
23+
post-cleanup: 'all'
24+
generate-run-shell: false
25+
26+
- name: Run tests
27+
run: |
28+
PYTHONPATH=. pytest tests
29+
shell: bash -el {0}

0 commit comments

Comments
 (0)