This commit is contained in:
@@ -3,29 +3,9 @@ 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/
|
||||
- run: whoami
|
||||
|
||||
Reference in New Issue
Block a user