ci: vendor qualify-addon.py (Pillar 1 self-contained)
All checks were successful
addon-qualify / qualify (push) Successful in 13s
All checks were successful
addon-qualify / qualify (push) Successful in 13s
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
# Pillar 1 of the addon-qualification proposal — runs on every push to any
|
||||
# branch and on every PR. Pulls the latest qualify-addon.py from the v3
|
||||
# monorepo and runs it against every addon directory in this repo.
|
||||
# branch and on every PR. Runs the vendored qualify-addon.py against every
|
||||
# addon directory in this repo.
|
||||
#
|
||||
# admit-with-warning posture: the workflow does NOT fail the build when an
|
||||
# addon fails the lint. The result is published as a check annotation so
|
||||
# operators can see it on the catalog card. (See docs/PROPOSAL_ADDON_QUALIFICATION.md
|
||||
# in odoo-tower/odooskyv3 for the rationale.)
|
||||
# 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:
|
||||
@@ -20,12 +21,6 @@ jobs:
|
||||
- name: Checkout addons repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Fetch qualify-addon.py from v3 monorepo
|
||||
run: |
|
||||
curl -fsSL 'https://git.odoosky.org/odoo-tower/odooskyv3/raw/branch/main/scripts/qualify-addon.py' -o /tmp/qualify-addon.py
|
||||
chmod +x /tmp/qualify-addon.py
|
||||
head -1 /tmp/qualify-addon.py
|
||||
|
||||
- name: Run qualifier on every addon
|
||||
run: |
|
||||
set +e
|
||||
@@ -38,9 +33,8 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
echo "Qualifying ${#ADDONS[@]} addons..."
|
||||
python3 /tmp/qualify-addon.py "${ADDONS[@]}"
|
||||
python3 .gitea/qualify-addon.py "${ADDONS[@]}"
|
||||
QUAL_RC=$?
|
||||
echo
|
||||
echo "::notice ::qualifier exit code $QUAL_RC (admit-with-warning — not failing build)"
|
||||
# Always succeed; the report is the artifact.
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user