Skip to content

Commit

Permalink
ci: add a code quality job
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Jul 9, 2024
1 parent 9964248 commit 56fbcd0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test code quality

on:
push:
pull_request:
branches:
- "*"

jobs:
code-quality:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Install pip and hatch
run: |
sudo apt-get install -y python3-pip
pip3 install hatch hatch-vcs
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-code-quality-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-code-quality-
- name: Run Hatch lint
run: hatch run linting:all

0 comments on commit 56fbcd0

Please sign in to comment.