Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFRA: Update actions #107

Merged
merged 2 commits into from
Jan 2, 2023
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
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