fix: simplify CI to focus on tests only
All checks were successful
CI / test (push) Successful in 8s
All checks were successful
CI / test (push) Successful in 8s
This commit is contained in:
@@ -3,39 +3,21 @@ 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
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python 3.11
|
- uses: actions/setup-python@v5
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install system deps
|
- name: Install dependencies
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y git
|
|
||||||
|
|
||||||
- name: Install Python deps
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest pyyaml rich gitpython cryptography typer toml configparser pathlib2
|
pip install pytest pyyaml rich gitpython cryptography typer toml configparser pathlib2 pytest-cov
|
||||||
pip install pytest-cov ruff mypy
|
|
||||||
|
|
||||||
- name: Show Python version
|
|
||||||
run: python --version
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest confsync/tests/ -v
|
run: pytest confsync/tests/ -v --tb=short
|
||||||
|
|
||||||
- name: Run linting
|
|
||||||
run: ruff check confsync/
|
|
||||||
|
|
||||||
- name: Check types
|
|
||||||
run: mypy confsync/ --ignore-missing-imports
|
|
||||||
|
|||||||
Reference in New Issue
Block a user