1name: Test API JSON generator 2on: 3 push: 4 pull_request: 5 6# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency 7# Ensure that only one commit will be running tests at a time on each PR 8concurrency: 9 group: ${{ github.ref }}-${{ github.workflow }} 10 cancel-in-progress: true 11 12jobs: 13 test_api_json: 14 if: github.repository == 'lvgl/lvgl' 15 runs-on: ubuntu-22.04 16 name: Test API JSON 17 steps: 18 - uses: actions/checkout@v4 19 20 - name: Setup Python 21 uses: actions/setup-python@v5 22 with: 23 python-version: '3.10' 24 25 - name: Install Doxygen and Latex dependencies 26 run: | 27 sudo apt-get update 28 sudo apt-get install doxygen texlive-xetex texlive-binaries texlive-lang-english latexmk fonts-freefont-otf 29 30 - name: Install requirements 31 run: pip install -r scripts/gen_json/requirements.txt 32 33 - name: Run test 34 run: python3 tests/gen_json/test_gen_json.py 35