Skip to content

Run Tests

Run Tests #301

Workflow file for this run

name: Run Tests
on:
workflow_dispatch: # Allows this workflow to be manually triggered
push: # Run for every push to and PR filed against main (renamed from master)
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 * * *" # At the end of every day
jobs:
build:
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [ubuntu-20.04, ubuntu-latest]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
exclude:
- os-version: ubuntu-latest
python-version: "3.5"
- os-version: ubuntu-latest
python-version: "3.6"
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 dependencies
run: make install-deps
- name: Check syntax and enforce PEP8, 127 char Github editor width
run: make check
- name: Run unit tests with coverage
# Exclude dependencies in coverage report with --omit
run: make coverage
- name: Check Coverage Results
# Could gate here to prevent pass under certain coverage %
run: make coverage-report