Skip to content

Integrate ruff (lint, format, and type-check) into CI (#7) #12

Integrate ruff (lint, format, and type-check) into CI (#7)

Integrate ruff (lint, format, and type-check) into CI (#7) #12

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches: [ "master", "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest ruff
- name: Lint, format, and type-check with ruff
run: |
ruff check .
ruff format --check .
- name: Run tests
run: pytest