Files
confsync/.gitea/workflows/ci.yml
7000pctAUTO 4a7d4144c6
Some checks failed
CI / test (push) Successful in 9m34s
CI / lint (push) Failing after 4m44s
CI / typecheck (push) Failing after 4m47s
fix: resolve CI apt-get pip installation issues
Use 'python -m pip' and 'python -m pytest' commands for better
compatibility with Gitea Actions environment
2026-02-04 21:37:36 +00:00

62 lines
1.3 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
python -m pip install pytest pytest-cov
python -m pip install -e .
- name: Run tests
run: python -m 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: python -m pip install ruff
- name: Run ruff
run: python -m 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: python -m pip install mypy
- name: Run mypy
run: python -m mypy confsync/ --ignore-missing-imports