Running test code from tox in GH actions #865
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: test | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ 'master' ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Run Linters | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Linters | |
run: tox -e lint | |
type-checks: | |
runs-on: ubuntu-latest | |
name: Type Checks | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Type Checks | |
run: tox -e type-check |