CI #72
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: CI | |
on: | |
push: | |
branches: [stable, develop] | |
pull_request: | |
branches: [stable, develop] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * 1" | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
if: github.repository == 'noaa-oar-arl/monetio' | |
strategy: | |
matrix: | |
python-version: ["3.6", "3.8", "3.10"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python (micromamba) | |
uses: mamba-org/provision-with-micromamba@v15 | |
with: | |
environment-file: environment-dev.yml | |
cache-env: true | |
extra-specs: | | |
python=${{ matrix.python-version }} | |
- name: Test with pytest | |
run: pytest -n auto -v -k 'not aqs' | |
- name: Test with pytspack installed | |
run: | | |
pip install https://github.com/noaa-oar-arl/pytspack/archive/master.zip | |
pytest -n auto -v -k with_pytspack | |
- name: Downgrade OpenSSL and test AQS | |
run: | | |
micromamba install 'openssl <3' | |
pytest -n auto -v -k aqs | |
docs: | |
name: Check docs build | |
runs-on: ubuntu-latest | |
if: github.repository == 'noaa-oar-arl/monetio' | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python (micromamba) | |
uses: mamba-org/provision-with-micromamba@v15 | |
with: | |
environment-file: docs/environment-docs.yml | |
cache-env: true | |
- name: Downgrade OpenSSL (for AQS URL linkcheck) | |
run: micromamba install 'openssl <3' | |
- name: linkcheck | |
run: sphinx-build -b linkcheck docs docs/_build/linkcheck | |
- name: sphinx-build -W | |
run: sphinx-build -b html -W docs docs/_build/html |