-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (40 loc) · 1.36 KB
/
ets-from-source.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: Test with EDM using ETS packages from source
on:
schedule:
- cron: '0 0 * * 5'
# Make it possible to manually trigger the workflow
workflow_dispatch:
env:
INSTALL_EDM_VERSION: 3.7.0
jobs:
# Test against EDM packages
test-with-edm:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runtime: ['3.8']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the target commit
uses: actions/checkout@v4
- name: Set up bootstrap Python (3.10)
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: '.github/workflows/bootstrap-requirements.txt'
- name: Install necessary packages to the bootstrap environment
run: python -m pip install -r .github/workflows/bootstrap-requirements.txt
- name: Cache EDM packages
uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.runtime }}-${{ hashFiles('etstool.py') }}
- name: Setup EDM
uses: enthought/setup-edm-action@v3
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install test environment
run: python etstool.py install --runtime=${{ matrix.runtime }} --source
- name: Run tests
run: python etstool.py test --runtime=${{ matrix.runtime }}