Files
tryton/.gitea/workflows/ci.yml
José Arturo García 4ca0d58fe4
Validate Tryton customizations / validate (pull_request) Successful in 3m32s
Validate Tryton customizations / validate (push) Successful in 3m37s
refactor(i18n): move Dominican Spanish into Tryton core
2026-10-13 19:55:28 -04:00

58 lines
1.4 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: 1
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
- name: Validate PO files
run: python ci/validate_po.py
- name: Build customized packages
run: python -m build trytond
- name: Install customized Tryton server
run: python -m pip install './trytond[test]'
- 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.tests.test_ir.IrTestCase.test_dominican_spanish_language