Update .forgejo/workflows/build.yml
This commit is contained in:
parent
32f51811c5
commit
dacbfd3bb0
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue