Exhaustive Tests #1851
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: Exhaustive Tests | |
on: | |
schedule: | |
# Run every morning at 9AM UTC | |
- cron: 0 9 * * * | |
jobs: | |
test: | |
name: Test ${{ matrix.sport }} (${{ matrix.operating-system }}, ${{ matrix.python-version}}) | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
# Prevent the entire workflow from failing if a singular test fails. | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8] | |
operating-system: [ubuntu-latest, macOS-latest, windows-latest] | |
sport: ['FB', 'MLB', 'NBA', 'NCAAB', 'NCAAF', 'NFL', 'NHL'] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test FB | |
if: matrix.sport == 'FB' | |
run: | |
python tests/exhaustive/fb_tests.py | |
- name: Test MLB | |
if: matrix.sport == 'MLB' | |
run: | |
python tests/exhaustive/mlb_tests.py | |
- name: Test NBA | |
if: matrix.sport == 'NBA' | |
run: | |
python tests/exhaustive/nba_tests.py | |
- name: Test NCAAB | |
if: matrix.sport == 'NCAAB' | |
run: | |
python tests/exhaustive/ncaab_tests.py | |
- name: Test NCAAF | |
if: matrix.sport == 'NCAAF' | |
run: | |
python tests/exhaustive/ncaaf_tests.py | |
- name: Test NFL | |
if: matrix.sport == 'NFL' | |
run: | |
python tests/exhaustive/nfl_tests.py | |
- name: Test NHL | |
if: matrix.sport == 'NHL' | |
run: | |
python tests/exhaustive/nhl_tests.py |