Fix command to use ruff #5
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- github-ci | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install --with dev | |
- name: Run tests | |
run: | | |
poetry run pytest | |
continue-on-error: false | |
- name: Run Bandit for security analysis | |
run: | | |
poetry run bandit -r app | |
continue-on-error: false | |
- name: Run Ruff for linting | |
run: | | |
poetry run ruff check . | |
continue-on-error: false |