Skip to content

Commit

Permalink
Add lints/checks on PR/main
Browse files Browse the repository at this point in the history
  • Loading branch information
flipbit03 committed Dec 31, 2024
1 parent 652f8f6 commit bda14ba
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/lints_and_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main, "*" ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Run `pre-commit` and ensure no changes would be made
run: |
poetry run pre-commit run --all-files --show-diff-on-failure
- name: Run `mypy` and ensure no errors
run: |
poetry run mypy

0 comments on commit bda14ba

Please sign in to comment.