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

Update the source dependencies for Linux wheels #91

Merged
merged 3 commits into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Modify actions config for testing
  • Loading branch information
jwiggins committed Mar 18, 2021
commit 6a0cfba534f3fc44eaded630d50862c71a346ed2
37 changes: 4 additions & 33 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,12 @@
name: Publish release to PyPI

on:
release:
types: [published]
on: pull_request


env:
INSTALL_EDM_VERSION: 3.2.1

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

steps:
- name: Check out the release commit
uses: actions/checkout@v2
- name: Setup EDM
uses: enthought/setup-edm-action@v1
with:
edm-version: ${{ env.INSTALL_EDM_VERSION }}
- name: Install build environment
run: |
edm --config ci/.edm.yaml install -y cython numpy
edm run -- pip install twine
- name: Build sdist
run: edm run -- python setup.py sdist
- name: Publish sdist to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
edm run -- python -m twine check dist/*.tar.gz
edm run -- python -m twine upload dist/*.tar.gz

build-wheel-linux:
runs-on: ubuntu-latest

Expand All @@ -41,21 +16,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.8
- 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/[email protected]
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
python-versions: 'cp36-cp36m cp38-cp38'
build-requirements: 'cython numpy'
pre-build-command: 'sh ci/build-wheel-deps.sh'
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine check dist/*-manylinux*.whl
python -m twine upload dist/*-manylinux*.whl
2 changes: 1 addition & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test

on: pull_request
on: release

env:
INSTALL_EDM_VERSION: 3.2.1
Expand Down