Skip to content

mda_gh_ci_tests

mda_gh_ci_tests #516

Workflow file for this run

name: mda_gh_ci_tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
schedule:
# 3 am Tuesdays and Fridays
- cron: "0 3 * * 2,5"
concurrency:
# Probably overly cautious group naming.
# Commits to develop will cancel each other, but PRs will only cancel
# commits within the same PR
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
tests:
runs-on: ubuntu-latest
name: "examples-tests"
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
environment-name: mda-user-guide
cache-environment: true
cache-downloads: true
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
hole2
- name: "environment information"
run: |
micromamba info
micromamba list
- name: "test snapshots"
working-directory: doc/source/scripts/
run: python -m pytest
- name: "test notebooks"
working-directory: tests/
run: python -m pytest