Skip to content

Commit

Permalink
chore: add workflow for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dest1n1s committed Jun 10, 2024
1 parent 055028f commit 931fc5a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 161 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Checks

on:
push:
branches:
- main
- dev*
paths:
- "**" # Include all files by default
- "!.devcontainer/**"
- "!.vscode/**"
- "!.git*"
- "!*.md"
- "!.github/**"
- ".github/workflows/checks.yml" # Still include current workflow
pull_request:
branches:
- main
- dev*
paths:
- "**"
- "!.devcontainer/**"
- "!.vscode/**"
- "!.git*"
- "!*.md"
- "!.github/**"
- ".github/workflows/checks.yml"
# Allow this workflow to be called from other workflows
workflow_call:
inputs:
# Requires at least one input to be valid, but in practice we don't need any
dummy:
type: string
required: false

permissions:
actions: write
contents: write

jobs:
code-checks:
name: Code Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
# You are now able to use PDM in your workflow
- name: Install dependencies
run: pdm install
- name: Type check
run: poetry run mypy .
163 changes: 2 additions & 161 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 931fc5a

Please sign in to comment.