Skip to content

Commit

Permalink
Create code-quality.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmschlk authored Feb 14, 2024
1 parent 0a27601 commit a84a174
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
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

0 comments on commit a84a174

Please sign in to comment.