From cdd65f1098fc059489df08a8a7feaaa9b3adf58f Mon Sep 17 00:00:00 2001 From: Christoph Schmidt Date: Fri, 30 May 2025 09:03:22 +0200 Subject: [PATCH 1/2] Add workflow to run pytest --- .github/workflows/run_testsuite.yaml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/run_testsuite.yaml diff --git a/.github/workflows/run_testsuite.yaml b/.github/workflows/run_testsuite.yaml new file mode 100644 index 0000000..50e0833 --- /dev/null +++ b/.github/workflows/run_testsuite.yaml @@ -0,0 +1,39 @@ +name: Testsuite + +on: + push: + branches: + - main + pull_request: + types: + - opened + - reopened + - synchronize + +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 From b87a97a5896a08cdbe52832a159c66748e6daeb4 Mon Sep 17 00:00:00 2001 From: Christoph Schmidt Date: Fri, 30 May 2025 09:27:11 +0200 Subject: [PATCH 2/2] Add nightly pipeline --- .github/workflows/check_code.yaml | 2 ++ .github/workflows/run_testsuite.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check_code.yaml b/.github/workflows/check_code.yaml index b7bcb23..74ae1b4 100644 --- a/.github/workflows/check_code.yaml +++ b/.github/workflows/check_code.yaml @@ -9,6 +9,8 @@ on: - opened - reopened - synchronize + schedule: + - cron: "0 3 * * *" # time zone is UTC jobs: fourc-webviewer-code-check: diff --git a/.github/workflows/run_testsuite.yaml b/.github/workflows/run_testsuite.yaml index 50e0833..a0cb248 100644 --- a/.github/workflows/run_testsuite.yaml +++ b/.github/workflows/run_testsuite.yaml @@ -9,6 +9,8 @@ on: - opened - reopened - synchronize + schedule: + - cron: "0 3 * * *" # time zone is UTC jobs: run_pytest: