Test suite launched by senesis #17
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 | |
run-name: Test suite launched by ${{ github.actor }} | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
Sole_job_yet: | |
name: Testing with ubuntu 20.04, conda and python 3.11 | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
#python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
python-version: [ "3.11"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Mambaforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
activate-environment: climaf_test | |
use-mamba: true | |
- name: Cache Conda env | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CONDA }}/envs | |
key: | |
conda-${{ runner.os }}--${{ runner.arch }}--${{ | |
hashFiles('tests/conda_test_environment.yml') }}-${{ env.CACHE_NUMBER }} | |
env: | |
# Increase this value to reset cache if environment.yml has not changed | |
CACHE_NUMBER: 0 | |
id: cache | |
- name: Update environment if needed | |
run: | |
mamba env update -n climaf_test -f tests/conda_test_environment.yml | |
if: steps.cache.outputs.cache-hit != 'true' | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "netcdfbasics" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "period" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "cache" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "classes" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "functions" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "operators" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "standard_operators" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "operators_derive" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "operators_scripts" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "cmacro" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "driver" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "dataloc" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "find_files" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "html" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "example_data_retrieval" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "example_index_html" 0) | |
- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "mcdo" 0) | |
#- run: (cd tests && ./launch_tests_with_coverage.sh 1 3 "example_data_plot" 0 "github_conda_GR") |