Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(quality): add CI for code quality #7

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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: fetch server schema
run: "hatch run dev:fetch-schema"

- 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
Loading