Skip to content

Commit

Permalink
.github/workflows/lint_and_test.yaml: add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
szobov committed Sep 17, 2024
1 parent 7f8734e commit cc3e1e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint and Test

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync requirements-test.txt
- name: Test with pytest
run: |
pytest .
- name: Install linting dependencies
run: |
uv sync requirements-dev.txt
- name: Lint
run: |
pre-commit run -a

0 comments on commit cc3e1e3

Please sign in to comment.