Update .forgejo/workflows/build.yml
Some checks failed
Test / Check syntax (push) Successful in 12s
Test / Test the application (push) Failing after 39s
Test / Build Debian Package (push) Successful in 51s

This commit is contained in:
Nova Cat 2025-01-20 18:47:53 -08:00
parent 32f51811c5
commit dacbfd3bb0

View file

@ -8,27 +8,27 @@ on:
jobs:
syntax:
name: Check syntax
runs-on: docker
runs-on: alpine
steps:
- uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: python3 libxml2-utils
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: apt update && apt install libxml2-utils
- 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
runs-on: alpine
needs: syntax
steps:
- uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: tigervnc py3-gobject3 py3-pip openbox scrot
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Setup sweerepo
run: curl -L https://swee.codes/repo.sh | bash
- name: Install dependencies
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0 openbox tightvncserver scrot -y
run: pip install --break-system-packages sweecrypt
- name: Set VNC password
run: echo -e "sweecrypt\nsweecrypt\n" | vncpasswd
- name: Start an X11 server