Skip to content

Commit

Permalink
lint and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amirdaaee committed Jan 8, 2024
1 parent 0864099 commit 3342630
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python Lint and Tests
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Format with black
uses: psf/black@stable
with:
args: .
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Lint with ruff
run: poetry run ruff --exit-non-zero-on-fix .
- name: Test with pytest
run: poetry run pytest

0 comments on commit 3342630

Please sign in to comment.