Skip to content

Commit

Permalink
add Python 3.9 to deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Dec 11, 2020
1 parent 24154ca commit 4f1778e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,34 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: build and upload manylinux wheels
- name: Build and upload manylinux wheels
uses: mozman/manylinux-wheel-builder@master
with:
python-versions: "3.*"
# if true then github actions won't stop even if build for this job fails
continue-on-error: true

# deploy source distribution
# Deploy source distribution
Source-dist:
runs-on: windows-latest
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: create source distribution
- name: Create source distribution
run: python setup.py sdist
- name: upload source distribution
- name: Upload source distribution
run: |
pip install twine
twine upload dist/*
continue-on-error: true

# Build and deploy wheels for macos and windows using setup-python action.
# This has nothing to do with manylinux-wheel-builder.
# I have just put them for the purpose of completion.
# Build and deploy wheels for MacOS and Windows
Matrix-build:
runs-on: ${{ matrix.os }}
env:
Expand All @@ -50,19 +48,19 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: build wheel
- name: Build binary wheels
run: |
pip install wheel cython
python setup.py bdist_wheel
- name: upload wheel
- name: Upload binary wheels
run: |
pip install twine
twine upload dist/*
continue-on-error: true
continue-on-error: true
1 change: 0 additions & 1 deletion .github/workflows/testcext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# This are just testing requirements:
python -m pip install pytest pyparsing geomdl cython
- name: Install with C-extensions
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# exclude cython to test the pure Python verion
# Excluding Cython to test the pure Python version.
python -m pip install pytest pyparsing geomdl
- name: Install without C-extensions
run: |
Expand Down

0 comments on commit 4f1778e

Please sign in to comment.