Skip to content

Commit

Permalink
on pushes & PRs, lint using GitHub Actions 💚 [todo]
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Aug 31, 2023
1 parent f2384e1 commit 1926b64
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: lint

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3'

steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node v${{ matrix.python-version }}
uses: actions/setup-node@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: pip install
run: pip install -r requirements.txt -r requirements-dev.txt

- name: lint using ruff
# uses: chartboost/ruff-action@v1
run: ruff check --format=github .

- name: format using black
run: |
black -S --check --diff .
- name: type-check using mypy
run: |
mypy .

0 comments on commit 1926b64

Please sign in to comment.