Merge pull request #1 from safurrier/use-rye-as-env-manager #4
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: Code Quality Checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
precommit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Rye | |
uses: eifinger/setup-rye@v2 | |
- name: Sync Rye | |
run: rye sync | |
- name: Run MyPy | |
run: rye run mypy src | |
- name: Run Linter | |
run: rye lint src | |
- name: Run Formatter | |
run: rye format src | |
- name: Run Tests | |
run: rye run py.test tests --cov=src --cov-report=term-missing |