Skip to content

Commit

Permalink
INFRA: Update actions (celiagg#107)
Browse files Browse the repository at this point in the history
* Default to Python 3.8 for CI tests
* Add wheel builds for Python 3.10 and 3.11
  • Loading branch information
jwiggins authored Jan 2, 2023
1 parent 2eff50a commit 5dc6a84
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ on:
types: [published]

env:
INSTALL_EDM_VERSION: 3.2.1
INSTALL_EDM_VERSION: 3.3.1

jobs:
build-sdist:
runs-on: ubuntu-latest

steps:
- name: Check out the release commit
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup EDM
uses: enthought/setup-edm-action@v1
uses: enthought/setup-edm-action@v2
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install build environment
run: |
edm --config ci/.edm.yaml install -y cython numpy
edm --config ci/.edm.yaml install -y --version 3.8 cython numpy
edm run -- pip install twine
- name: Build sdist
run: edm run -- python setup.py sdist
Expand All @@ -37,19 +37,19 @@ jobs:

steps:
- name: Check out the release commit
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Python packages needed for wheel upload
run: |
python -m pip install --upgrade pip setuptools
python -m pip install twine
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.3
uses: RalfG/python-wheels-manylinux-build@v0.5.0
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
build-requirements: 'cython numpy'
pre-build-command: 'sh ci/build-wheel-deps.sh'
- name: Publish wheels to PyPI
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on: pull_request

env:
INSTALL_EDM_VERSION: 3.2.1
INSTALL_EDM_VERSION: 3.3.1

jobs:

Expand All @@ -14,18 +14,18 @@ jobs:
build-args: ['', '--install-option --no-text-rendering']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies for Linux
run: |
sudo apt-get update
sudo apt-get install libharfbuzz-dev libfreetype-dev
- name: Setup EDM
uses: enthought/setup-edm-action@v1
uses: enthought/setup-edm-action@v2
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install test environment
run: |
edm --config ci/.edm.yaml install -y cython numpy
edm --config ci/.edm.yaml install -y --version 3.8 cython numpy
edm run -- pip install -e . ${{ matrix.build-args }}
- name: Run tests
run: edm run -- python -m unittest discover -v celiagg
Expand All @@ -44,14 +44,14 @@ jobs:
# relative path between the site-packages and the source directory.
EDM_ROOT_DIRECTORY: ${{ github.workspace }}/.edm
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup EDM
uses: enthought/setup-edm-action@v1
uses: enthought/setup-edm-action@v2
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install test environment
run: |
edm --config ci/.edm.yaml install -y cython freetype harfbuzz numpy
edm --config ci/.edm.yaml install -y --version 3.8 cython libfreetype libharfbuzz numpy
edm run -- pip install -e . ${{ matrix.build-args }}
- name: Run tests
run: edm run -- python -m unittest discover -v celiagg

0 comments on commit 5dc6a84

Please sign in to comment.