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