Skip to content

Add actions for notebook clearing, building docs, and running unit tests #16

Add actions for notebook clearing, building docs, and running unit tests

Add actions for notebook clearing, building docs, and running unit tests #16

name: CI - Lint & Typecheck

Check failure on line 1 in .github/workflows/ci-lint-typecheck.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-lint-typecheck.yml

Invalid workflow file

(Line: 45, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
on:
push:
branches: [ main ]
paths:
- "**/*.py"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/ci-lint-typecheck.yml"
pull_request:
paths:
- "**/*.py"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/ci-lint-typecheck.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ruff:
name: Ruff (lint + format)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Ruff check
uses: astral-sh/ruff-action@v3
with:
args: "check"
- name: Ruff format (check)
uses: astral-sh/ruff-action@v3
with:
args: "format --check"
typecheck:
name: Typecheck (pyrefly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup
- uses: ./.github/actions/setup
- name: Run pyrefly
run: uv run pyrefly check