diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 04e4173..3ba2f9d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,39 +3,21 @@ name: CI on: push: branches: [ main ] - pull_request: - branches: [ main ] jobs: test: runs-on: ubuntu-latest 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: python-version: '3.11' - - name: Install system deps - run: | - apt-get update && apt-get install -y git - - - name: Install Python deps + - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest pyyaml rich gitpython cryptography typer toml configparser pathlib2 - pip install pytest-cov ruff mypy - - - name: Show Python version - run: python --version + pip install pytest pyyaml rich gitpython cryptography typer toml configparser pathlib2 pytest-cov - name: Run tests - run: pytest confsync/tests/ -v - - - name: Run linting - run: ruff check confsync/ - - - name: Check types - run: mypy confsync/ --ignore-missing-imports + run: pytest confsync/tests/ -v --tb=short