Merge pull request #1199 from aodn/goodrich #15
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: ardc_nrt module | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# ARDC NRT module unittests | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: ardc_nrt | |
environment-file: AODN/AODN-WAVE-NRT/ARDC_API_NRT/environment.yml | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: | | |
conda install --yes mamba | |
mamba env update --name ardc_nrt --file AODN/AODN-WAVE-NRT/ARDC_API_NRT/environment.yml | |
- name: Activate Conda environment | |
shell: bash -el {0} | |
run: | | |
conda init | |
conda activate ardc_nrt | |
- name: Run pytest and coverage | |
run: | | |
pytest AODN/AODN-WAVE-NRT/ARDC_API_NRT |