Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/test-with-edm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow targets stable released dependencies from EDM.

name: Test with EDM

on: pull_request

env:
INSTALL_EDM_VERSION: 3.2.1

jobs:

# Test against EDM packages
# Note that some packages may not actually be installed from EDM but from
# PyPI, see ci/edmtool.py implementations.
test-with-edm:
strategy:
matrix:
os: [macos-latest]
toolkit: ['pyqt', 'pyqt5', 'pyside2', 'wx']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache EDM packages
uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ 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 }}
- name: Run tests
run: edm run -- python ci/edmtool.py test --toolkit=${{ matrix.toolkit }}