Files
coulobre/.gitea/workflows/ci.yml
T
parkel 3d25818683
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
Document the cluster wizard and automated inventory
2026-11-26 22:10:34 +01:00

75 lines
2.3 KiB
YAML

name: Coulobre Panel CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
checks:
name: Checks (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.14"]
env:
COULOBRE_SECRET_KEY: ci-test-only
steps:
- name: Check out source
uses: https://github.com/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Set up Python
uses: https://github.com/actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install development dependencies
run: python -m pip install -e '.[dev]'
- name: Install Zstandard for backup fixtures
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends zstd
- name: Check Python style and shell syntax
run: |
ruff check .
ruff format --check .
sh -n tests/web-node/smoke.sh
sh -n deploy/certbot/reload-apache.sh
sh -n deploy/debian/postinst
sh -n deploy/debian/prerm
sh -n deploy/debian/coulobre-install
- name: Check Django configuration and migrations
run: |
python manage.py check
python manage.py makemigrations --check --dry-run
- name: Run tests
run: |
python manage.py test coulobre
python -m unittest discover -s tests -p 'test_*installer.py'
- name: Verify package artifacts
if: matrix.python-version == '3.14'
run: |
python -m pip install build
python -m build
python tools/check_core_release.py dist/*.tar.gz dist/*.whl
python tools/build_deb.py dist/*.tar.gz dist/*.whl
umask 077
git -c user.name='Coulobre CI' -c user.email='ci@hippogrief.nl' \
tag --annotate coulobre-ci-artifacts -m 'Verify tagged build'
python tools/build_deb.py dist/*.tar.gz dist/*.whl \
--ref coulobre-ci-artifacts --output rebuilt
cmp dist/*.deb rebuilt/*.deb
dpkg-deb --info dist/*.deb