Update README.md (#41) #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Checks | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
merge_group: | |
types: [checks_requested] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v4 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Run formatter | |
run: uv run ruff format | |
type-check: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9" ] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v4 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Run type checker | |
run: uv run pyright | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9" ] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v4 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Run linter | |
run: uv run ruff check | |
spell-check: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9" ] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v4 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Run linter | |
run: uv run typos |