32 lines
640 B
YAML
32 lines
640 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
run: git checkout ${{ github.sha }}
|
|
|
|
- name: Set up Python
|
|
run: |
|
|
apt-get update && apt-get install -y python3 python3-pip
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: python3 -m pytest tests/ -v --tb=short
|
|
|
|
- name: Run ruff linting
|
|
run: |
|
|
pip install ruff
|
|
ruff check src/confgen/ tests/
|