-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (41 loc) · 1.61 KB
/
bleeding-edge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Bleeding Edge dependencies
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '0 0 * * 5'
env:
INSTALL_EDM_VERSION: 3.7.0
jobs:
# Test against EDM packages
test-bleeding-edge:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runtime: ['3.8']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Cache EDM packages
uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-${{ hashFiles('etstool.py') }}
- name: Set up EDM
uses: enthought/setup-edm-action@v4
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install click to the default EDM environment
run: edm install -y wheel click coverage
- name: Install test environment
run: edm run -- python etstool.py install --runtime ${{ matrix.runtime }} --environment scimath-test
- name: Remove dependencies obtained with edm
run: |
edm plumbing remove-package --environment scimath-test traits
edm plumbing remove-package --environment scimath-test scipy
- name: Re-install dependencies using pip
run: |
edm run --environment scimath-test -- python -m pip install --force-reinstall "git+http://github.com/enthought/traits.git#egg=traits"
edm run --environment scimath-test -- python -m pip install --force-reinstall scipy
- name: Run tests
run: edm run -- python etstool.py test --runtime=${{ matrix.runtime }} --environment scimath-test