Skip to content

Commit

Permalink
ci: add ruff & mypy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tigattack committed Aug 19, 2024
1 parent f250201 commit 4c23da9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:

env:
package_name: dvsa_mot_history

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Lint with ruff
uses: jpetrucciani/ruff-check@main
with:
path: ${{ env.package_name }}


mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup python and restore poetry
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
cache: "poetry"

- name: Lint with mypy
run: |
poetry install --with dev
poetry run mypy --strict ${{ env.package_name }}

0 comments on commit 4c23da9

Please sign in to comment.