Skip to content

Commit cdd65f1

Browse files
committed
Add workflow to run pytest
1 parent b068c65 commit cdd65f1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Testsuite
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
13+
jobs:
14+
run_pytest:
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
shell: bash -l {0}
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
- name: Set up virtual environment
24+
uses: conda-incubator/setup-miniconda@v3
25+
with:
26+
auto-update-conda: true
27+
conda-remove-defaults: true
28+
activate-environment: 4c-webviewer
29+
python-version: 3.12
30+
- name: Install requirements
31+
shell: bash -el {0}
32+
run: |
33+
conda activate 4c-webviewer
34+
pip install -e .
35+
- name: Run pytest
36+
shell: bash -el {0}
37+
run: |
38+
conda activate 4c-webviewer
39+
pytest --color=yes -v

0 commit comments

Comments
 (0)