| 1 |
# This workflow will install Python dependencies, run tests and lint with a single version of Python |
| 2 |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions |
| 3 |
|
| 4 |
name: Run Tests |
| 5 |
|
| 6 |
on: |
| 7 |
push: |
| 8 |
branches: [master] |
| 9 |
pull_request: |
| 10 |
branches: [master] |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
runs-on: ubuntu-latest |
| 15 |
|
| 16 |
steps: |
| 17 |
- uses: actions/[email protected] |
| 18 |
- name: Set up Python 3.8 |
| 19 |
uses: actions/[email protected] |
| 20 |
with: |
| 21 |
python-version: 3.8 |
| 22 |
- name: Install dependencies |
| 23 |
run: | |
| 24 |
pip install tox |
| 25 |
- name: Run tox |
| 26 |
run: | |
| 27 |
tox |