Long tests #3
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
name: Long tests | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
test: | |
timeout-minutes: 7200 | |
runs-on: [self-hosted, Linux, X64] | |
strategy: | |
fail-fast: false | |
matrix: | |
jobname: ["QB_A08_A07", "QB_A15_A14", "QB_A16_A06"] | |
defaults: # Needed for conda | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
submodules: true | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: "3.10" | |
channels: acellera,conda-forge | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 coverage pytest-cov pytest pytest-subtests | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Install conda deps | |
run: | | |
conda install mamba | |
mamba install -y -q --file conda_deps.txt python=3.10 | |
- name: Install package | |
run: | | |
pip install . | |
- name: List conda environment | |
run: conda list | |
- name: Export conda environment | |
run: conda env export --name test | |
- name: Test | |
run: | | |
pytest ./tests_long -s -k ${{ matrix.jobname }} |