Skip to content

πŸ˜΅β€πŸ’« Testing a few CI things. Removing mypy.ini and ruff.toml for the … #5

πŸ˜΅β€πŸ’« Testing a few CI things. Removing mypy.ini and ruff.toml for the …

πŸ˜΅β€πŸ’« Testing a few CI things. Removing mypy.ini and ruff.toml for the … #5

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint-typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Cache uv environments
uses: actions/cache@v3
with:
path: ~/.cache/uv
key: uv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
uv-${{ runner.os }}-
- name: Install tools with uv
run: uv tool install ruff mypy
- name: Ruff lint
run: ruff check .
- name: Ruff format check
run: ruff format --check .
- name: Mypy type checking
run: mypy .
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: |
**/*.md