edh-elo/.github/workflows/lint-and-test.yaml
2024-02-14 22:43:25 -08:00

22 lines
575 B
YAML

# Shouldn't really be needed, what with the pre-commit setup (see `DEVELOPMENT.md`) -
# but, doesn't hurt!
name: 'Lint And Test'
on:
push:
jobs:
lint_and_test:
name: 'Lint and Test'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- run: 'python3 -m pip install -r requirements.txt'
- run: 'python3 -m pip install -r requirements-dev.txt'
- run: 'ruff check .'
- run: 'black --check .'
- run: 'pytest .'