Scheduled unit tests #105
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: Scheduled unit tests | |
# Controls when the action will run. | |
# Every week "At 07:17 on Sunday." | |
# See https://crontab.guru/#17_7_*_*_7 | |
# This way we know for sure package will keep working with | |
# potential new downstream updates | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "17 7 * * 0" | |
jobs: | |
run: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip3 install --upgrade pip | |
pip3 install --upgrade setuptools | |
pip3 install --upgrade wheel | |
pip3 install -r tests/test_requirements.txt | |
pip3 install . | |
- name: Run unit tests | |
run: | | |
git config --global user.name "Github Action" | |
git config --global user.email "githubaction@gmail.com" | |
pytest | |