-
Notifications
You must be signed in to change notification settings - Fork 96
43 lines (38 loc) · 1.23 KB
/
test-etsdemo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This workflow runs tests from the ets-demo distribution.
name: Test etsdemo
on:
pull_request:
paths:
- 'ets-demo/**'
env:
QT_MAC_WANTS_LAYER: 1
INSTALL_EDM_VERSION: 3.5.0
jobs:
test-etsdemo:
strategy:
matrix:
os: [ubuntu-latest]
toolkit: ['pyside6']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Qt dependencies for Linux
uses: ./.github/actions/install-qt-support
if: startsWith(matrix.os, 'ubuntu')
- name: Cache EDM packages
uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ hashFiles('ets-demo/etstool.py') }}
- name: Setup EDM
uses: enthought/setup-edm-action@v3
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install click to the default EDM environment
run: edm install -y wheel click
- name: Install test environment
run: edm run -- python etstool.py install --toolkit=${{ matrix.toolkit }}
working-directory: ets-demo
- name: Run tests
run: xvfb-run -a edm run -- python etstool.py test --toolkit=${{ matrix.toolkit }}
working-directory: ets-demo