Bump Python from 3.8 to 3.11 #91
Workflow file for this run
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: Test suite | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ['develop'] | |
paths: | |
- '.github/workflows/testsuite.yml' | |
- 'superdsm/**' | |
- 'examples/**' | |
- 'superdsm.yml' | |
- 'tests/**' | |
- 'requirements.txt' | |
jobs: | |
run_testsuite: | |
name: Test suite | |
runs-on: gpuagrohr-01 | |
container: | |
image: ubuntu:22.04 | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Clear cache # otherwise corrupted packages can be reported sometimes | |
run: rm -rf /github/home/conda_pkgs_dir | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: 'latest' | |
channels: conda-forge, bioconda, defaults | |
auto-update-conda: true | |
auto-activate-base: false | |
activate-environment: superdsm | |
environment-file: superdsm.yml | |
- name: Export the environment | |
run: 'conda env export | grep -v "^prefix: " > superdsm.yml' | |
- name: Save the environment as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: superdsm.yml | |
path: superdsm.yml | |
- name: Run SuperDSM | |
run: python -m "unittest" |