-
Notifications
You must be signed in to change notification settings - Fork 5
executable file
·45 lines (38 loc) · 1.17 KB
/
test_ardc_nrt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
auto-activate-base: false # Prevent activating base env
- name: Install dependencies
shell: bash -el {0}
run: |
conda install --yes mamba
mamba env create --name ardc_nrt --file environment.yml || true # Create only if not exists
conda activate ardc_nrt
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