Skip to content

Commit

Permalink
(Fix) github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed May 7, 2024
1 parent 8a2880f commit da9c38b
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/test.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,43 @@ on:
jobs:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'true'

# ARDC NRT
- uses: conda-incubator/setup-miniconda@v2

# ARDC NRT module unittests
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
installer-url: https://repo.anaconda.com/miniconda/Miniconda3-py38_4.11.0-Linux-x86_64.sh
auto-update-conda: true
environment-file: AODN/AODN-WAVE-NRT/ARDC_API_NRT/environment.yml
activate-environment: ardc_nrt
environment-file: AODN/AODN-WAVE-NRT/ARDC_API_NRT/environment.yml

- name: unittests - ARDC_NRT module
shell: bash -l {0}
- 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
# common data services unittests
- name: unittests - data-services common library
shell: bash -l {0}
run: |
conda env update -f environment.yml
mamba env update --name data_services_3.8 -f environment.yml
conda activate data_services_3.8
export PYTHONPATH=lib/python
pytest lib/test/python

0 comments on commit da9c38b

Please sign in to comment.