Skip to content

Commit

Permalink
ci(quality): add CI for code quality
Browse files Browse the repository at this point in the history
This commit adds Ruff, Basedpyright and pytest to CI.
  • Loading branch information
serramatutu committed Jun 17, 2024
1 parent c044498 commit 0a22065
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Code quality
on:
pull_request:

jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-python-env

- name: ruff
run: "hatch run dev:ruff format --check"

- name: basedpyright
run: "hatch run dev:basedpyright"

- name: basedpyright
run: "hatch run test:run"

3 changes: 1 addition & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
id-token: write

steps:
- name: Check-out the repo
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python ${{ env.PYTHON_VERSION }} environment
uses: ./.github/actions/setup-python-env
Expand Down

0 comments on commit 0a22065

Please sign in to comment.