Skip to content

Commit

Permalink
add workflows for linting and type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjleo committed Dec 9, 2024
1 parent 43f956f commit e77d2fb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check_types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run type checks

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
run_type_checks:
runs-on: ubuntu-latest
steps:
- name: Check out ${{ github.ref_name }}
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.6"
- name: Install packages
run: uv sync --all-extras --dev
- name: Run pyright
run: uv run pyright
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run linter

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
run_type_checks:
runs-on: ubuntu-latest
steps:
- name: Check out ${{ github.ref_name }}
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.6"
- name: Install packages
run: uv sync --all-extras --dev
- name: Run ruff
run: uvx ruff check

0 comments on commit e77d2fb

Please sign in to comment.