Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/check_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- opened
- reopened
- synchronize
schedule:
- cron: "0 3 * * *" # time zone is UTC

jobs:
fourc-webviewer-code-check:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/run_testsuite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Testsuite

on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
schedule:
- cron: "0 3 * * *" # time zone is UTC

jobs:
run_pytest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up virtual environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
conda-remove-defaults: true
activate-environment: 4c-webviewer
python-version: 3.12
- name: Install requirements
shell: bash -el {0}
run: |
conda activate 4c-webviewer
pip install -e .
- name: Run pytest
shell: bash -el {0}
run: |
conda activate 4c-webviewer
pytest --color=yes -v