Merge pull request #6 from tonyandrewmeyer/patch-1 #5
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: Run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: Ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: python3 -m pip install tox | |
- name: Run linters | |
run: tox -e lint | |
unit-test: | |
name: Unit tests | |
runs-on: Ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: python -m pip install tox | |
- name: Run Unit Tests | |
run: tox -e unit |