Compare commits

..

No commits in common. "main" and "v1.2" have entirely different histories.
main ... v1.2

View file

@ -1,58 +1,22 @@
name: Test name: Sanity check
on: on:
push: push:
workflow_dispatch: workflow_dispatch:
pull_request:
jobs: jobs:
syntax: build:
name: Check syntax name: Test Python file
runs-on: alpine runs-on: debian-latest
steps:
- uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: python3 libxml2-utils
- uses: actions/checkout@v4
- 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: alpine
needs: syntax
steps:
- uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: tigervnc py3-gobject3 py3-xdg py3-pip gtk+3.0 apk-gtk3 openbox scrot font-noto-all
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install --break-system-packages sweecrypt
- name: Set VNC password
run: echo -e "sweecrypt\nsweecrypt\n" | vncpasswd
- name: Start an X11 server
run: USER=root vncserver :5 &
- name: Start the app
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
- name: Wait 5 secs
run: sleep 5
- name: Take a screenshot
run: DISPLAY=:5 scrot screenshot.png
- name: Upload screenshot
uses: actions/upload-artifact@v3
with:
path: screenshot.png
apt:
name: Build Debian Package
runs-on: docker
needs: syntax
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Generate DEB - name: Generate DEB
run: | run: |
python3 generate-deb.py python generate-deb.py
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
path: sweecrypt-gtk.deb path: sweecrypt-gtk.deb