-
Notifications
You must be signed in to change notification settings - Fork 7
74 lines (62 loc) · 1.87 KB
/
Copy pathresult-server-tests.yml
File metadata and controls
74 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Result Server Tests
on:
pull_request:
push:
branches:
- develop
- main
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: requirements-result-server.txt
- name: Install result_server test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-result-server.txt
- name: Run site configuration preflight
run: python result_server/tests/check_site_config.py
- name: Run result_server pytest suite
run: python result_server/tests/run_result_server_tests.py
profile-data-shell-group:
name: profile-data-shell / ${{ matrix.shell-group }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shell-group:
- common
- result-sender
- estimation
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run ${{ matrix.shell-group }} shell tests
run: bash scripts/tests/run_profile_data_shell_tests.sh "${{ matrix.shell-group }}"
profile-data-shell:
runs-on: ubuntu-latest
needs: profile-data-shell-group
if: ${{ always() }}
steps:
- name: Check shell test groups
run: |
set -euo pipefail
if [ "${{ needs.profile-data-shell-group.result }}" != "success" ]; then
echo "One or more shell test groups failed"
exit 1
fi
echo "All shell test groups passed"