(Fix) github actions #11
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: aodn_cloud_optimised | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: AodnCloudOptimised | |
environment-file: environment.yml | |
- name: Activate Conda environment | |
shell: bash | |
run: conda activate AodnCloudOptimised | |
- name: Install dependencies | |
run: | | |
conda install --yes mamba | |
mamba env update --name AodnCloudOptimised --file environment.yml | |
- name: Run pytest and coverage | |
run: | | |
pytest | |
coverage run -m pytest | |
coverage report |