Skip to content

Commit 6649869

Browse files
committed
test only on linux
1 parent 54f771d commit 6649869

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

.github/workflows/cross-platform.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,6 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- name: Install Qt system dependencies (Linux only)
26-
if: runner.os == 'Linux'
27-
run: |
28-
sudo apt-get update
29-
sudo apt-get install -y \
30-
libegl1 \
31-
libgl1 \
32-
libxkbcommon-x11-0 \
33-
libxcb-icccm4 \
34-
libxcb-image0 \
35-
libxcb-keysyms1 \
36-
libxcb-randr0 \
37-
libxcb-render-util0 \
38-
libxcb-xinerama0 \
39-
libxcb-xfixes0 \
40-
xvfb
41-
4225
- name: Set up Python ${{ matrix.python-version }}
4326
uses: actions/setup-python@v5
4427
with:
@@ -47,8 +30,16 @@ jobs:
4730
# these libraries enable testing on Qt on linux
4831
- uses: tlambert03/setup-qt-libs@v1
4932

50-
- name: Install tox
51-
run: pip install tox tox-gh-actions
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
python -m pip install setuptools tox tox-gh-actions
37+
38+
# this runs the platform-specific tests declared in tox.ini
39+
- name: Test with tox
40+
uses: GabrielBB/xvfb-action@v1
41+
with:
42+
run: python -m tox
43+
env:
44+
PLATFORM: ${{ matrix.platform }}
5245

53-
- name: Run tox
54-
run: tox

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ passenv =
2929
extras =
3030
testing
3131

32+
3233
commands = pytest -v --color=yes
3334
#--cov=epicure --cov-report=xml

0 commit comments

Comments
 (0)