From 16f50a6ce03e4355788ef4d40cc654357b8713ee Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Tue, 7 Jan 2025 12:34:14 +0100 Subject: [PATCH] Check python syntax Signed-off-by: Corentin LABBE --- .github/workflows/basic.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index d012aa5..822e942 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -5,6 +5,21 @@ on: # yamllint disable-line rule:truthy rule:line-length pull_request: jobs: + lava-lab-gen-syntax: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9.20', "3.10.15", "3.11.9", "3.12.6", 3.13] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: check syntax of lavalab-gen + run: | + python -m py_compile lavalab-gen.py > output + if [ -s output ] ; then cat output ; exit 1 ; fi check-lava-lab-gen: runs-on: ubuntu-22.04 steps: