🧹 Install pre-commit
and fixes lint errors
#175
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: Test | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- docs/** | |
- .github/workflows/docs.yml | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- docs/** | |
- .github/workflows/docs.yml | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: Install dependencies | |
run: pip install -e .[test] | |
- name: Lint with pre-commit | |
run: pre-commit run --all-files |