Update swig wrapper to build on recent swig #806
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow targets stable released dependencies from EDM. | |
# Note that some packages may not actually be installed from EDM but from | |
# PyPI, see ci/edmtool.py implementations. | |
name: Test with EDM | |
on: pull_request | |
env: | |
INSTALL_EDM_VERSION: 3.5.0 | |
jobs: | |
# Test against EDM packages on Linux | |
test-edm-linux: | |
strategy: | |
matrix: | |
toolkit: ['null', 'pyside6'] | |
runtime: ['3.8'] | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Qt dependencies | |
uses: ./.github/actions/install-qt-support | |
if: matrix.toolkit != 'wx' | |
- name: Cache EDM packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache | |
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ matrix.runtime }}-${{ hashFiles('ci/edmtool.py') }} | |
- name: Setup EDM | |
uses: enthought/setup-edm-action@v2 | |
with: | |
edm-version: ${{ env.INSTALL_EDM_VERSION }} | |
- name: Install click to the default EDM environment | |
run: edm --config ci/.edm.yaml install -y wheel click coverage | |
- name: Install test environment | |
run: edm run -- python ci/edmtool.py install --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }} | |
- name: Run tests | |
# kiva agg requires at least 15-bit color depth. | |
run: xvfb-run -a --server-args="-screen 0 1024x768x24" edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }} | |
# Test against EDM packages on Windows | |
test-with-edm: | |
strategy: | |
matrix: | |
os: ["windows-latest"] | |
toolkit: ['null', 'pyside6', 'wx'] | |
runtime: ['3.8'] | |
runs-on: ${{ matrix.os }} | |
env: | |
# Set root directory, mainly for Windows, so that the EDM Python | |
# environment lives in the same drive as the cloned source. Otherwise | |
# 'pip install' raises an error while trying to compute | |
# relative path between the site-packages and the source directory. | |
EDM_ROOT_DIRECTORY: ${{ github.workspace }}/.edm | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache EDM packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache | |
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ matrix.runtime }}-${{ hashFiles('ci/edmtool.py') }} | |
- name: Setup EDM | |
uses: enthought/setup-edm-action@v1 | |
with: | |
edm-version: ${{ env.INSTALL_EDM_VERSION }} | |
- name: Install click to the default EDM environment | |
run: edm --config ci/.edm.yaml install -y wheel click coverage | |
- name: Install test environment | |
run: edm run -- python ci/edmtool.py install --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }} | |
- name: Run tests | |
run: edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }} |