Skip to content

Fix build issues for chaco #520

Fix build issues for chaco

Fix build issues for chaco #520

Workflow file for this run

# 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: 4.1.1
PYTHONUNBUFFERED: 1
EDM_CONFIG: '${{ github.workspace }}/ci/edm.yaml'
jobs:
test-edm:
strategy:
matrix:
toolkit: ['null', 'pyside6', 'wx']
runtime: ['3.11']
os: ['ubuntu-latest', 'windows-latest']
include:
- toolkit: 'null'
runtime: '3.11'
os: macos-latest
- toolkit: 'pyside6'
runtime: '3.11'
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Cache EDM packages
uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ matrix.runtime }}-${{ hashFiles('ci/edmtool.py') }}
- name: Setup EDM
uses: enthought/[email protected]
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install opengl for Linux
run: |
sudo apt-get update
sudo apt-get install libopengl0 libegl1
if: matrix.os == 'ubuntu-latest' && matrix.toolkit != 'null'
- name: Install click to the default EDM environment
run: edm install -y wheel click coverage
- name: Set ETS_TOOLKIT
uses: ./.github/actions/ets_toolkit
with:
toolkit: ${{ matrix.toolkit }}
- name: Install test environment
run: edm run -- python ci/edmtool.py install --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }}
- name: Run tests on Linux
if: matrix.os == 'ubuntu-latest'
env:
PYTHONFAULTHANDLER: 1
run: xvfb-run -a --server-args="-screen 0 1024x768x24" edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }}
- name: Run tests
if: matrix.os != 'ubuntu-latest'
env:
PYTHONFAULTHANDLER: 1
run: edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }} --runtime=${{ matrix.runtime }}