CI / Tests (Linux, Python 3.12) (push) Successful in 9m27s
Gitea only has Linux runners available. Drop the Python version matrix, macOS/Windows jobs, and coverage artifact upload to reduce CI surface area to what can actually run.
43 lines
987 B
YAML
43 lines
987 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: Tests (Linux, Python 3.12)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
cache: pip
|
|
cache-dependency-path: |
|
|
requirements.txt
|
|
requirements-dev.txt
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-dev.txt
|
|
|
|
- name: Syntax check
|
|
run: |
|
|
python -m py_compile tagsync.py
|
|
python -c "import pathlib, py_compile; [py_compile.compile(str(p), doraise=True) for p in pathlib.Path('tagsync').rglob('*.py')]"
|
|
|
|
- name: CLI smoke test
|
|
run: |
|
|
python tagsync.py --help
|
|
python tagsync.py status
|
|
|
|
- name: Run tests
|
|
run: pytest
|