Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/bootstrap-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
click
31 changes: 17 additions & 14 deletions .github/workflows/ets-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
INSTALL_EDM_VERSION: 3.2.3
INSTALL_EDM_VERSION: 3.3.1

jobs:

Expand All @@ -16,32 +16,35 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runtime: ['3.6', '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: Checkout the target commit
uses: actions/checkout@v3
- name: Set up bootstrap Python (3.10)
uses: actions/setup-python@v4
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@v2
uses: actions/cache@v3
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ hashFiles('etstool.py') }}
key: ${{ runner.os }}-${{ matrix.runtime }}-${{ hashFiles('etstool.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 install -y wheel click coverage
- name: Install test environment
run: edm run -- python etstool.py install --source
run: python etstool.py install --runtime=${{ matrix.runtime }} --source
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: edm run -- python etstool.py test
run: python etstool.py test --runtime=${{ matrix.runtime }}

notify-on-failure:
needs: test-with-edm
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/test-with-edm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,47 @@

name: Test with EDM

on: pull_request
on: [pull_request, workflow_dispatch]

env:
INSTALL_EDM_VERSION: 3.2.3
INSTALL_EDM_VERSION: 3.3.1

jobs:

# Test against EDM packages
test-with-edm:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runtime: ['3.6', '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: Checkout the target commit
uses: actions/checkout@v3
- name: Set up bootstrap Python (3.10)
uses: actions/setup-python@v4
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@v2
uses: actions/cache@v3
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ hashFiles('etstool.py') }}
key: ${{ runner.os }}-${{ matrix.runtime }}-${{ hashFiles('etstool.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 install -y wheel click coverage
- name: Install test environment
run: edm run -- python etstool.py install
- name: Flake8
run: edm run -- python etstool.py flake8
run: python etstool.py install --runtime=${{ matrix.runtime }}
- name: Run style checks (only on Linux)
run: python etstool.py flake8 --runtime=${{ matrix.runtime }}
if: startsWith(matrix.os, 'ubuntu')
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: edm run -- python etstool.py test
run: python etstool.py test --runtime=${{ matrix.runtime }}
1 change: 1 addition & 0 deletions docs/releases/upcoming/316.build.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update etstool.py to support Python 3.8. (#316)
Loading