Skip to content

Commit

Permalink
Use Python 3.8 for tests from source (#898)
Browse files Browse the repository at this point in the history
* Use Python 3.8 for tests from source.

* Use Pyside6 for the tests on Python 3.8
  • Loading branch information
corranwebster authored May 16, 2023
1 parent e8d1473 commit a6a3aec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ets-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
toolkit: ['null', 'pyqt5', 'pyside2']
toolkit: ['null', 'pyside6']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -36,18 +36,18 @@ jobs:
- name: Install click to the default EDM environment
run: edm install -y wheel click coverage
- name: Install test environment
run: edm run -- python ci/edmtool.py install --toolkit=${{ matrix.toolkit }} --source
run: edm run -- python ci/edmtool.py install --runtime=3.8 --toolkit=${{ matrix.toolkit }} --source
- name: Run tests
# kiva agg requires at least 15-bit color depth.
# The --server-args assumes xvfb-run is called, hence Linux only.
run: xvfb-run -a --server-args="-screen 0 1024x768x24" edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }}
run: xvfb-run -a --server-args="-screen 0 1024x768x24" edm run -- python ci/edmtool.py test --runtime=3.8 --toolkit=${{ matrix.toolkit }}

# Test against EDM packages from source on Windows and OSX
test-ets-source:
strategy:
matrix:
os: [windows-latest]
toolkit: ['null', 'pyqt5', 'pyside2']
toolkit: ['null', 'pyside6']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -63,9 +63,9 @@ jobs:
- name: Install click to the default EDM environment
run: edm install -y wheel click coverage
- name: Install test environment
run: edm run -- python ci/edmtool.py install --toolkit=${{ matrix.toolkit }} --source
run: edm run -- python ci/edmtool.py install --runtime=3.8 --toolkit=${{ matrix.toolkit }} --source
- name: Run tests
run: edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }}
run: edm run -- python ci/edmtool.py test --runtime=3.8 --toolkit=${{ matrix.toolkit }}

notify-on-failure:
needs: [test-ets-source-linux, test-ets-source]
Expand Down

0 comments on commit a6a3aec

Please sign in to comment.