Add linting support #460
Workflow file for this run
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: ci | |
# yamllint disable-line rule:truthy | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Setup enviroment | |
run: pip install -r requirements-dev.txt | |
- name: Linting | |
run: make lint | |
- name: Run tests + cov report | |
run: make test-with-coverage | |
- name: Check style | |
run: make black | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.xml |