-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try GitHub Actions by migrating updater-gui-tests job
The syntax is fairly close, so no actual changes were needed to the commands that are run. I did switch usage of `apt` to `apt-get` since the former isn't supposed to be used in scripts. I intentionally chose to not migrate the branch filter over to reduce complexity given how fast and light this job is.
- Loading branch information
Showing
2 changed files
with
23 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
updater-gui-tests: | ||
runs-on: ubuntu-latest | ||
container: debian:bullseye | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
apt-get update && apt-get install -y libqt5designer5 python3-venv | ||
cd journalist_gui | ||
python3 -m venv .venv/ && source .venv/bin/activate | ||
pip install --require-hashes -r dev-requirements.txt | ||
- name: Run tests | ||
run: | | ||
cd journalist_gui | ||
source .venv/bin/activate | ||
QT_QPA_PLATFORM=offscreen python3 test_gui.py -v |