Skip to content

Commit

Permalink
add git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdai committed Sep 20, 2024
1 parent 663063c commit 7dfd639
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Linting
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: get code
uses: actions/checkout@v4
- name: install poetry
run: pipx install poetry
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "poetry"
- name: install deps
run: |
poetry env use "3.10"
poetry install --no-interaction
- name: Install pre-commit
shell: bash
run: poetry run pip install pre-commit
- name: lint and format
run: |
poetry run make lint

0 comments on commit 7dfd639

Please sign in to comment.