41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# Pillar 1 of the addon-qualification proposal — runs on every push to any
|
|
# branch and on every PR. Runs the vendored qualify-addon.py against every
|
|
# addon directory in this repo.
|
|
#
|
|
# admit-with-warning posture: lint findings are reported but do NOT fail
|
|
# the build (matches Pillar 3 informed-consent posture).
|
|
#
|
|
# To update the qualifier itself, edit scripts/qualify-addon.py in
|
|
# odoo-tower/odooskyv3 then sync it here.
|
|
name: addon-qualify
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
qualify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout addons repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run qualifier on every addon
|
|
run: |
|
|
set +e
|
|
ADDONS=()
|
|
for d in addons/*/; do
|
|
[ -f "$d/__manifest__.py" ] && ADDONS+=("${d%/}")
|
|
done
|
|
if [ ${#ADDONS[@]} -eq 0 ]; then
|
|
echo "No addons under addons/ — nothing to qualify"
|
|
exit 0
|
|
fi
|
|
echo "Qualifying ${#ADDONS[@]} addons..."
|
|
python3 .gitea/qualify-addon.py "${ADDONS[@]}"
|
|
QUAL_RC=$?
|
|
echo
|
|
echo "::notice ::qualifier exit code $QUAL_RC (admit-with-warning — not failing build)"
|
|
exit 0
|