use match statement instead of ifs (#56) #280
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
# SPDX-License-Identifier: MIT | |
name: Tests | |
on: | |
schedule: | |
# Run each Sun | |
- cron: '0 0 * * 0' | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHONPATH: src:test | |
COVERAGE_PROCESS_START: .coveragerc | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run tests with coverage | |
run: | | |
pip install coverage | |
python test/test.py | |
coverage combine | |
coverage report --fail-under=90 |