Skip to content

Commit db70646

Browse files
authored
ci: build / test wheels for Python 3.10 [WIP] (#78)
Closes #49.
1 parent 4e0029d commit db70646

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/presubmit.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ jobs:
2727
# 3.10 is not yet available in manylinux docker images.
2828
# https://github.com/pypa/manylinux
2929
# python: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
30-
python: [3.6, 3.7, 3.8, 3.9]
30+
python: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
31+
# It is possible 3.10-dev will fail when the other versions are green.
32+
# Turn off fast fail so if 3.10 fails the other required versions have
33+
# the opportunity to pass.
34+
fail-fast: false
3135
steps:
3236
- uses: actions/checkout@v2
3337
- name: Set up Python
@@ -36,8 +40,7 @@ jobs:
3640
python-version: ${{ matrix.python }}
3741
- name: Install dependencies
3842
run: |
39-
python -m pip install --upgrade pip
40-
pip install setuptools wheel
43+
python -m pip install --upgrade setuptools pip wheel
4144
- name: Build
4245
env:
4346
BUILD_PYTHON: ${{ matrix.python }}
@@ -73,8 +76,7 @@ jobs:
7376
python-version: ${{ matrix.python }}
7477
- name: Install dependencies
7578
run: |
76-
python -m pip install --upgrade pip
77-
pip install setuptools wheel
79+
python -m pip install --upgrade setuptools pip wheel
7880
- name: Build
7981
run: |
8082
./scripts/osx/build_gh_action.sh
@@ -113,8 +115,7 @@ jobs:
113115
python-version: ${{ matrix.python }}
114116
- name: Install dependencies
115117
run: |
116-
python -m pip install --upgrade pip
117-
pip install setuptools wheel
118+
python -m pip install --upgrade setuptools pip wheel
118119
- name: Build
119120
run: |
120121
where python

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
python: [3.6, 3.7, 3.8, 3.9]
26+
python: [3.6, 3.7, 3.8, 3.9, 3.10dev]
2727
steps:
2828
- uses: actions/checkout@v2
2929
- name: Set up Python
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: macos-latest
5757
strategy:
5858
matrix:
59-
python: [3.6, 3.7, 3.8, 3.9]
59+
python: [3.6, 3.7, 3.8, 3.9, 3.10dev]
6060
steps:
6161
- uses: actions/checkout@v2
6262
- name: Set up Python
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: windows-latest
8888
strategy:
8989
matrix:
90-
python: [3.6, 3.7, 3.8, 3.9]
90+
python: [3.6, 3.7, 3.8, 3.9, 3.10dev]
9191
steps:
9292
- uses: actions/checkout@v2
9393
- name: Add msbuild to PATH

scripts/manylinux/build_on_centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [[ -z ${BUILD_PYTHON} ]]; then
6666
fi
6767
done
6868
else
69-
STRIPPED_PYTHON=$(echo ${BUILD_PYTHON} | sed -e "s/\.//g")
69+
STRIPPED_PYTHON=$(echo ${BUILD_PYTHON} | sed -e "s/\.//g" | sed -e "s/-dev$//")
7070
for PYTHON_BIN in /opt/python/*/bin; do
7171
if [[ "${PYTHON_BIN}" == *"${STRIPPED_PYTHON}"* ]]; then
7272
PYTHON_VERSIONS="${PYTHON_VERSIONS} ${PYTHON_BIN}"

0 commit comments

Comments
 (0)