Skip to content

Commit e0f0728

Browse files
committed
Add pytests to GitHub Actions
1 parent 7e1511c commit e0f0728

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pytest
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: Run Pytest
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up micromamba environment
17+
uses: mamba-org/setup-micromamba@v2
18+
with:
19+
environment-file: isschecker_env.yml
20+
environment-name: isschecker
21+
cache-environment: true
22+
cache-downloads: true
23+
init-shell: >-
24+
bash
25+
26+
- name: Run test suite
27+
shell: micromamba-shell {0}
28+
run: pytest -v tests/test_compliance_checker.py

0 commit comments

Comments
 (0)