1111 strategy :
1212 matrix :
1313 os : [ubuntu-latest, windows-latest, macos-latest]
14- python-version : ['3.6', '3. 7', '3.8', '3.9', '3.10', '3.11-dev ']
14+ python-version : ['3.7', '3.8', '3.9', '3.10', '3.11']
1515 python-architecture : [x86, x64]
1616 exclude :
1717 - os : macos-latest
@@ -22,20 +22,21 @@ jobs:
2222 runs-on : ${{ matrix.os }}
2323
2424 steps :
25- - name : Install Linux packages for Qt 5 support
25+ - name : Install Linux packages for Qt support
2626 run : |
2727 sudo apt-get update
28- sudo apt-get install qt5-default
28+ sudo apt-get install libegl1
2929 sudo apt-get install libxkbcommon-x11-0
30+ sudo apt-get install libxcb-cursor0
3031 sudo apt-get install libxcb-icccm4
3132 sudo apt-get install libxcb-image0
3233 sudo apt-get install libxcb-keysyms1
3334 sudo apt-get install libxcb-randr0
3435 sudo apt-get install libxcb-render-util0
35- sudo apt-get install libxcb-xinerama0
36+ sudo apt-get install libxcb-shape0
3637 if : runner.os == 'Linux'
3738 - name : Set up Python ${{ matrix.python-version }} (${{ matrix.python-architecture }})
38- uses : actions/setup-python@v2
39+ uses : actions/setup-python@v4
3940 with :
4041 python-version : ${{ matrix.python-version }}
4142 architecture : ${{ matrix.python-architecture }}
@@ -48,17 +49,18 @@ jobs:
4849 - name : Create clean test directory
4950 run : |
5051 mkdir testdir
51- - name : Test Traits package
52- uses : GabrielBB/xvfb-action@v1
53- with :
54- working-directory : testdir
55- run : python -m unittest discover -v traits
52+ - name : Test Traits package (Linux)
53+ run : cd testdir && xvfb-run -a python -m unittest discover -v traits
54+ if : matrix.os == 'ubuntu-latest'
55+ - name : Test Traits package (Windows/macOS)
56+ run : cd testdir && python -m unittest discover -v traits
57+ if : matrix.os != 'ubuntu-latest'
5658
5759 test-pypi-wheel :
5860 strategy :
5961 matrix :
6062 os : [ubuntu-latest, windows-latest, macos-latest]
61- python-version : ['3.6 ', '3.7 ', '3.8 ', '3.9 ', '3.10 ']
63+ python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ', '3.11 ']
6264 python-architecture : [x86, x64]
6365 exclude :
6466 - os : macos-latest
@@ -69,20 +71,21 @@ jobs:
6971 runs-on : ${{ matrix.os }}
7072
7173 steps :
72- - name : Install Linux packages for Qt 5 support
74+ - name : Install Linux packages for Qt support
7375 run : |
7476 sudo apt-get update
75- sudo apt-get install qt5-default
77+ sudo apt-get install libegl1
7678 sudo apt-get install libxkbcommon-x11-0
79+ sudo apt-get install libxcb-cursor0
7780 sudo apt-get install libxcb-icccm4
7881 sudo apt-get install libxcb-image0
7982 sudo apt-get install libxcb-keysyms1
8083 sudo apt-get install libxcb-randr0
8184 sudo apt-get install libxcb-render-util0
82- sudo apt-get install libxcb-xinerama0
85+ sudo apt-get install libxcb-shape0
8386 if : runner.os == 'Linux'
8487 - name : Set up Python ${{ matrix.python-version }} (${{ matrix.python-architecture }})
85- uses : actions/setup-python@v2
88+ uses : actions/setup-python@v4
8689 with :
8790 python-version : ${{ matrix.python-version }}
8891 architecture : ${{ matrix.python-architecture }}
@@ -95,11 +98,12 @@ jobs:
9598 - name : Create clean test directory
9699 run : |
97100 mkdir testdir
98- - name : Test Traits package
99- uses : GabrielBB/xvfb-action@v1
100- with :
101- working-directory : testdir
102- run : python -m unittest discover -v traits
101+ - name : Test Traits package (Linux)
102+ run : cd testdir && xvfb-run -a python -m unittest discover -v traits
103+ if : matrix.os == 'ubuntu-latest'
104+ - name : Test Traits package (Windows/macOS)
105+ run : cd testdir && python -m unittest discover -v traits
106+ if : matrix.os != 'ubuntu-latest'
103107
104108 notify-on-failure :
105109 needs : [test-pypi-sdist, test-pypi-wheel]
0 commit comments