Skip to content

Commit

Permalink
Skip unsupported versions in publish workflow (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Oct 28, 2020
1 parent ea0a5c8 commit f7f55b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ name: Publish
on:
release:
types: [created]
workflow_dispatch: {}

jobs:
package-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Prepare C files to include
Expand All @@ -37,11 +38,12 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Build wheels
env:
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
CIBW_BEFORE_BUILD_LINUX: pip install -r requirements-cython.txt && yum install -y zlib-devel
# On windows and mac we should have z library preinstalled
CIBW_BEFORE_BUILD: pip install -r requirements-cython.txt
Expand All @@ -63,14 +65,20 @@ jobs:

strategy:
matrix:
python: [3.6, 3.7]
python: [3.6, 3.7, 3.8, 3.9]
include:
- python: 3.6
snappy_whl: tools/python_snappy-0.5.4-cp36-cp36m-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-win_amd64.whl
- python: 3.7
snappy_whl: tools/python_snappy-0.5.4-cp37-cp37m-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-win_amd64.whl
- python: 3.8
snappy_whl: tools/python_snappy-0.5.4-cp38-cp38-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp38-cp38-win_amd64.whl
- python: 3.9
snappy_whl: tools/python_snappy-0.5.4-cp39-cp39-win_amd64.whl
aiokafka_whl: dist/aiokafka-*-cp39-cp39-win_amd64.whl

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -105,12 +113,16 @@ jobs:

strategy:
matrix:
python: [3.6, 3.7]
python: [3.6, 3.7, 3.8, 3.9]
include:
- python: 3.6
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-macosx_10_9_x86_64.whl
- python: 3.7
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-macosx_10_9_x86_64.whl
- python: 3.8
aiokafka_whl: dist/aiokafka-*-cp38-cp38-macosx_10_9_x86_64.whl
- python: 3.9
aiokafka_whl: dist/aiokafka-*-cp39-cp39-macosx_10_9_x86_64.whl

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -145,12 +157,16 @@ jobs:

strategy:
matrix:
python: [3.6, 3.7]
python: [3.6, 3.7, 3.8.5, 3.9]
include:
- python: 3.6
aiokafka_whl: dist/aiokafka-*-cp36-cp36m-manylinux1_x86_64.whl
- python: 3.7
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-manylinux1_x86_64.whl
- python: 3.8.5
aiokafka_whl: dist/aiokafka-*-cp38-cp38-manylinux1_x86_64.whl
- python: 3.9
aiokafka_whl: dist/aiokafka-*-cp39-cp39-manylinux1_x86_64.whl

steps:
- uses: actions/checkout@v2
Expand All @@ -174,6 +190,8 @@ jobs:
pip install ${{ matrix.aiokafka_whl }}
- name: Run Unit Tests
# FIXME 3.8.6 and 3.9.0 have broken `wait_for`
if: ${{ matrix.python != '3.9' }}
run: |
# Remove source code to be sure we use wheel code
rm -rf aiokafka
Expand Down
Binary file added tools/python_snappy-0.5.4-cp39-cp39-win_amd64.whl
Binary file not shown.

0 comments on commit f7f55b1

Please sign in to comment.