Scheduled Tests #1122
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
# Note that this file intentionally uses no cache, see | |
# https://github.com/metoppv/improver/pull/1651#issue-1108889073 | |
name: Scheduled Tests | |
on: | |
schedule: | |
- cron: '7 4 * * *' | |
workflow_dispatch: | |
jobs: | |
Sphinx-Pytest-Coverage: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
env: [latest] | |
if: github.repository_owner == 'metoppv' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Environment creation | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: envs/${{ matrix.env }}.yml | |
init-shell: bash | |
cache-environment: true | |
- name: Environment info | |
run: | | |
micromamba info | |
micromamba list | |
shell: bash -el {0} | |
- name: sphinx documentation | |
run: | | |
make -C doc html SPHINXOPTS="-W --keep-going" | |
shell: micromamba-shell {0} | |
- name: pytest without coverage | |
run: | | |
pytest | |
shell: micromamba-shell {0} | |
Safety-Bandit: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
env: [latest] | |
if: github.repository_owner == 'metoppv' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Environment creation | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: envs/${{ matrix.env }}.yml | |
init-shell: bash | |
cache-environment: true | |
- name: Environment info | |
run: | | |
micromamba info | |
micromamba list | |
shell: bash -el {0} | |
- name: safety | |
run: | | |
safety check || true | |
shell: micromamba-shell {0} | |
- name: bandit | |
run: | | |
bandit -r improver | |
shell: micromamba-shell {0} | |
Type-checking: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
env: [latest] | |
if: github.repository_owner == 'metoppv' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Environment creation | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: envs/${{ matrix.env }}.yml | |
init-shell: bash | |
cache-environment: true | |
- name: Environment info | |
run: | | |
micromamba info | |
micromamba list | |
shell: bash -el {0} | |
- name: mypy | |
run: | | |
mypy improver || true | |
shell: micromamba-shell {0} |