Cron Tests #1
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: Cron Tests | |
on: | |
workflow_dispatch: null | |
schedule: | |
# Runs "First of every month at 3:15am Central" | |
- cron: '15 8 1 * *' | |
jobs: | |
# Github Actions supports ubuntu, windows, and macos virtual environments: | |
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners | |
ci_tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- name: Ubuntu - Python 3.10 with all optional dependencies | |
os: ubuntu-latest | |
python: "3.10" | |
toxenv: 'py10-test-alldeps' | |
- name: MacOs - Python 3.10 with all optional dependencies | |
os: macos-latest | |
python: "3.10" | |
toxenv: 'py10-test-alldeps' | |
- name: Ubuntu - Python 3.11 with all optional dependencies | |
os: ubuntu-latest | |
python: "3.11" | |
toxenv: 'py11-test-alldeps' | |
- name: MacOs - Python 3.11 with all optional dependencies | |
os: macos-latest | |
python: "3.11" | |
toxenv: 'py11-test-alldeps' | |
- name: Ubuntu - Python 3.12 with all optional dependencies | |
os: ubuntu-latest | |
python: "3.12" | |
toxenv: 'py312-test-alldeps' | |
- name: MacOs - Python 3.12 with all optional dependencies | |
os: macos-latest | |
python: "3.12" | |
toxenv: 'py312-test-alldeps' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up python ${{ matrix.python }} on ${{ matrix.os }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install base dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox codecov | |
- name: Test with tox | |
run: | | |
tox -e ${{ matrix.toxenv }} |