Skip to content

Commit 4dea2d1

Browse files
authored
Merge pull request #10 from c-p-schmidt/add-testsuite-workflow
Improve test suite
2 parents fbe6efd + b87a97a commit 4dea2d1

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/check_code.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- opened
1010
- reopened
1111
- synchronize
12+
schedule:
13+
- cron: "0 3 * * *" # time zone is UTC
1214

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

0 commit comments

Comments
 (0)