Skip to content

Commit

Permalink
Setup linting with github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gbip committed Jan 20, 2025
1 parent 4106961 commit 885dc93
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint source code

on:
push:
branches: [ $default-branch ]
pull_request:

jobs:

mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for versioningit to find the repo version
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip download .[drf]

- name: Install dependencies
run: python -m pip install --upgrade pip
-r requirements/requirements-dev.in
-r requirements/requirements-test.in

0 comments on commit 885dc93

Please sign in to comment.