Skip to content

Commit 5b81086

Browse files
committed
CI: Run unit tests without xrdb
1 parent 3547c80 commit 5b81086

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/ci.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
name: CI Build
1+
name: openshot-qt CI Build
22
on: [push, pull_request]
33
jobs:
44
build:
55
runs-on: ${{ matrix.os }}
6+
continue-on-error: ${{ matrix.allowed-to-fail }}
67
strategy:
8+
fail-fast: false
79
matrix:
8-
os: [ubuntu-18.04, ubuntu-20.04]
10+
include:
11+
- os: ubuntu-18.04
12+
allowed-to-fail: false
13+
- os: ubuntu-20.04
14+
allowed-to-fail: true
15+
defaults:
16+
run:
17+
shell: bash
918
steps:
1019
- uses: actions/checkout@v2
1120

1221
- name: Install dependencies
13-
# Some projects don't allow in-source building, so create a separate build directory
14-
# We'll use this as our working directory for all subsequent commands
15-
shell: bash
1622
run: |
1723
sudo add-apt-repository ppa:openshot.developers/libopenshot-daily
1824
sudo apt update
@@ -23,11 +29,8 @@ jobs:
2329
pip3 install cx_Freeze==6.1 distro defusedxml requests certifi chardet urllib3
2430
2531
- name: Build Python package
26-
# Use a bash shell so we can use the same syntax for environment variable
27-
# access regardless of the host operating system
28-
shell: bash
2932
run: python3 freeze.py build
3033

3134
- name: Test
32-
shell: bash
33-
run: xvfb-run --auto-servernum --server-num=1 --server-args "-screen 0 1920x1080x24" python3 ./src/tests/query_tests.py
35+
run: python3 ./src/tests/query_tests.py -platform offscreen
36+

0 commit comments

Comments
 (0)