Update .forgejo/workflows/build.yml
This commit is contained in:
parent
bb856143fa
commit
4ab01b84e3
1 changed files with 25 additions and 2 deletions
|
@ -1,14 +1,37 @@
|
|||
name: Auto build
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
x11:
|
||||
name: Test the application
|
||||
runs-on: docker
|
||||
steps:
|
||||
- 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 x11vnc x11-apps imagemagick -y
|
||||
- name: Start an X11 server
|
||||
run: x11vnc -display :5 &
|
||||
- name: Start openbox
|
||||
run: DISPLAY=:5 openbox &
|
||||
- name: Start the app
|
||||
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
|
||||
- name: Wait 5 secs
|
||||
run: sleep 5
|
||||
- name: Take a screenshot
|
||||
run: xwd -root -display :5 | convert - jpg:- > screenshot.jpg
|
||||
- name: Upload screenshot
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: screenshot.jpg
|
||||
apt:
|
||||
name: Build Debian Package
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
|
|
Loading…
Add table
Reference in a new issue