Validate Tryton customizations / validate (push) Failing after 4m28s
72 lines
1.9 KiB
YAML
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: 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 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
|