diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index c8553ec..b9d288f 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -6,9 +6,22 @@ on: pull_request: jobs: + syntax: + name: Check syntax + runs-on: docker + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install dependencies + uses: apt update && apt install xmllib2 + - name: Check syntax of Python file + run: python3 -m py_compile sweecrypt-gtk.py + - name: Check syntax of XML file + run: xmllint --format sweecrypt-gtk.ui x11: name: Test the application runs-on: docker + needs: syntax steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -38,6 +51,7 @@ jobs: apt: name: Build Debian Package runs-on: docker + needs: syntax steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5