Document contributor conventions and add Gitea CI
This commit is contained in:
1 parent
d7314fa927
commit
751d5b16a9
5 files changed
+139
No files matched your search
@@ -0,0 +1,53 @@
|
||||
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
|
||||
|
||||
- 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
|
||||
Reference in new issue
Block a user