Skip to content

Commit

Permalink
Create python.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
austinsonger authored Jan 26, 2025
1 parent 42b2b87 commit 29fa209
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python checks

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff check .
- name: Check formatting with black
run: black . --check --verbose
- name: Run unit tests
run: |
pytest

0 comments on commit 29fa209

Please sign in to comment.