Merge pull request #3 from alexwlchan/build-tooling #25
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 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: pip | |
cache-dependency-path: dev_requirements.txt | |
- name: Install dependencies | |
run: python3 -m pip install -r dev_requirements.txt | |
- name: Check formatting | |
run: | | |
ruff check . | |
ruff format --check . | |
- name: Run test suite | |
run: | | |
coverage run -m pytest test_concurrently.py | |
coverage report --skip-covered --fail-under=100 |