Merge pull request #392 from MannLabs/bump_to_1.9.1 #366
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |