Skip to content

Update code-quality.yml #3

Update code-quality.yml

Update code-quality.yml #3

Workflow file for this run

# This workflow will install Python dependencies, run code-quality checks
name: code-quality
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pre-commit
run: |
pip install pre-commit
pre-commit install
- name: Run code-quality checks
run: pre-commit run --all-files