Files
confsync/.gitea/workflows/ci.yml
7000pctAUTO 13eded6109
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
fix: resolve CI apt-get pip installation issues
- Created pyproject.toml with proper dependency configuration
- Simplified CI workflow by removing complex build job
- Updated pip install commands with proper pip/setuptools upgrade
2026-02-04 21:15:38 +00:00

63 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pytest pytest-cov
pip install -e .
- name: Run tests
run: pytest confsync/tests/ -v --tb=short
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install mypy
run: pip install mypy
- name: Run mypy
run: mypy confsync/ --ignore-missing-imports