Skip to content

Commit 07658d7

Browse files
committed
Run system tests in CI
1 parent 0114a35 commit 07658d7

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/_test_system.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
python-version:
5+
type: string
6+
description: The version of python to install
7+
required: true
8+
runs-on:
9+
type: string
10+
description: The runner to run this job on
11+
required: true
12+
secrets:
13+
CODECOV_TOKEN:
14+
required: true
15+
16+
env:
17+
# https://github.com/pytest-dev/pytest/issues/2042
18+
PY_IGNORE_IMPORTMISMATCH: "1"
19+
20+
jobs:
21+
run:
22+
runs-on: ${{ inputs.runs-on }}
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
# Need this to get version number from last tag
29+
fetch-depth: 0
30+
31+
- name: Deploy local server
32+
run: ./deployment/build_and_push.sh -r -b
33+
34+
- name: Run system tests
35+
run: tox -e system_tests_local

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@ jobs:
3434
secrets:
3535
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3636

37+
test_system:
38+
needs: check
39+
if: needs.check.outputs.branch-pr == ''
40+
strategy:
41+
matrix:
42+
runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
43+
python-version: ["3.11", "3.12", "3.13"]
44+
include:
45+
# Include one that runs in the dev environment
46+
- runs-on: "ubuntu-latest"
47+
python-version: "dev"
48+
fail-fast: false
49+
uses: ./.github/workflows/_test_system.yml
50+
with:
51+
runs-on: ${{ matrix.runs-on }}
52+
python-version: ${{ matrix.python-version }}
53+
secrets:
54+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
55+
3756
container:
3857
needs: check
3958
if: needs.check.outputs.branch-pr == ''

0 commit comments

Comments
 (0)