Files
tryton/.gitea/workflows/ci.yml
T
José Arturo García 75d36f6a09
Validate Tryton customizations / validate (push) Canceled after 3m29s
ci: clone from the runner-accessible Gitea URL
2026-10-13 19:24:59 -04:00

72 lines
1.9 KiB
YAML

name: Validate Tryton customizations
on:
push:
branches:
- '8.0'
- 'integration/8.0'
- 'feature/**'
- 'translation/**'
pull_request:
branches:
- '8.0'
- 'integration/8.0'
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
github-server-url: https://code.unpaismejor.org.do
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- name: Install validation dependencies
run: python -m pip install --upgrade build polib
- name: Validate Python syntax
run: python -m compileall -q trytond/trytond modules/translation_do
- name: Validate PO files
run: python ci/validate_po.py
- name: Build customized packages
run: |
python -m build trytond
python -m build modules/translation_do
- name: Install Tryton server and translation module
run: |
python -m pip install './trytond[test]'
python -m pip install modules/translation_do/dist/*.whl
- name: Run relevant Tryton tests
env:
TRYTOND_DATABASE_URI: sqlite://
DB_NAME: ':memory:'
run: |
python -m unittest discover -s ci/tests -p 'test_*.py'
python -m unittest discover -s trytond/trytond/tests -p 'test_i18n.py'
python -m unittest trytond.modules.translation_do.tests.test_module
- name: Upload Python distributions
uses: actions/upload-artifact@v4
with:
name: tryton-custom-python-${{ gitea.sha }}
path: |
trytond/dist/*
modules/translation_do/dist/*
if-no-files-found: error
retention-days: 14