Skip to content

Scheduled test

Scheduled test #59

name: Scheduled test
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 5 */3 * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install watobs
run: |
pip install .[test]
- name: Test with pytest
env:
DMI_API_KEY: ${{ secrets.DMI_API_KEY}}
DHI_ALTIMETRY_API_KEY: ${{ secrets.DHI_ALTIMETRY_API_KEY}}
run: |
pytest --ignore tests/notebooks/