feat(ingest): Allow option to use nextclade sort to identify segments in multi-segmented viruses #761
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: ingest-tests | |
on: | |
# test | |
pull_request: | |
paths: | |
- "ingest/**" | |
- ".github/workflows/ingest-tests.yml" | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}-ingest-tests | |
cancel-in-progress: true | |
jobs: | |
unitTests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up micromamba | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: ingest/environment.yml | |
micromamba-version: 'latest' | |
init-shell: >- | |
bash powershell | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Run tests | |
run: | | |
micromamba activate loculus-ingest | |
pytest tests/ | |
shell: micromamba-shell {0} | |
working-directory: ingest |