This commit is contained in:
@@ -3,29 +3,9 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- run: whoami
|
||||||
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/
|
|
||||||
|
|||||||
Reference in New Issue
Block a user