-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (51 loc) · 1.74 KB
/
e2e_testing.yml
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
on:
pull_request:
types: [ labeled ]
push:
branches: [ main, development ]
workflow_dispatch:
name: End to end testing
jobs:
end2end_testing:
name: End to end test
runs-on: self-hosted
if: contains(github.event.pull_request.labels.*.name, 'test:e2e') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
# test case name as defined in e2e_test_cases.yaml
test_case: [ "basic", "synchropasef", "astral", "astral_automatic_calibration", ]
env:
RUN_NAME: alphadia-${{github.sha}}-${{github.run_id}}-${{github.run_attempt}}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
NEPTUNE_API_TOKEN: ${{ secrets.NEPTUNE_E2E_TOKEN }}
NEPTUNE_PROJECT_NAME: "MannLabs/alphaDIA-e2e-tests"
NUMBA_BOUNDSCHECK: 1
NUMBA_DEVELOPER_MODE: 1
NUMBA_FULL_TRACEBACKS: 1
TQDM_MININTERVAL: 10 # avoid lots of tqdm outputs
steps:
- uses: actions/checkout@v4
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Pip installation with stable dependencies
id: pip_installation
shell: bash -el {0}
run: |
cd misc
. ./pip_install.sh stable $RUN_NAME
- name: Run e2e tests
shell: bash -el {0}
run: |
cd tests
. ./run_e2e_tests.sh ${{ matrix.test_case }} $RUN_NAME True ${GITHUB_SHA::7} $BRANCH_NAME
- name: Cleanup
if: always()
shell: bash -el {0}
run: |
conda remove -n $RUN_NAME --all -y
- name: Delete Caches on Error
if: ${{ failure() && steps.pip_installation.conclusion == 'failure' }}
run: |
rm -rf ~/.cache/pip
rm -rf ~/.cache/conda