Add ruff #26
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: pipx install poetry~=1.6.1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'poetry' | |
- run: poetry install | |
- run: sudo apt-get install -y ripgrep | |
- run: poetry run pytest | |
- run: poetry run ruff check . | |
- run: poetry run ruff format --check . |