summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2022-07-08 08:27:09 +0200
committerGitHub <noreply@github.com>2022-07-08 08:27:09 +0200
commit2231265da5ee98a7d53375386c55a4b4476a73cb (patch)
tree68cf8d5ab0797562c19b7a992fa1e03bbd36b7c7 /.github
parent136d9fcc22bad729572659da7fa3f574428e767a (diff)
downloadzope-security-2231265da5ee98a7d53375386c55a4b4476a73cb.tar.gz
Fix GHA Python 3.10 build on MacOS + PyPy-2.7 (#87)
Built with https://github.com/zopefoundation/meta/pull/150.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml36
1 files changed, 31 insertions, 5 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index dd5f5b1..116f04a 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -104,7 +104,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-beta.1"
+ - "3.11.0-beta.3"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest
@@ -140,12 +140,38 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- - name: Install Build Dependencies
+ - name: Install Build Dependencies (PyPy2)
+ if: >
+ startsWith(matrix.python-version, 'pypy-2.7')
+ run: |
+ pip install -U pip
+ pip install -U setuptools wheel twine "cffi != 1.15.1"
+ - name: Install Build Dependencies (other Python versions)
+ if: >
+ !startsWith(matrix.python-version, 'pypy-2.7')
run: |
pip install -U pip
pip install -U setuptools wheel twine cffi
- - name: Build zope.security
+ - name: Build zope.security (Python 3.10 on MacOS)
+ if: >
+ startsWith(runner.os, 'Mac')
+ && startsWith(matrix.python-version, '3.10')
+ env:
+ _PYTHON_HOST_PLATFORM: macosx-11-x86_64
+ run: |
+ # Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
+ # output (pip install uses a random temporary directory, making this difficult).
+ python setup.py build_ext -i
+ python setup.py bdist_wheel
+ # Also install it, so that we get dependencies in the (pip) cache.
+ pip install -U 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"'
+ pip install --pre .[test]
+
+ - name: Build zope.security (all other versions)
+ if: >
+ !startsWith(runner.os, 'Mac')
+ || !startsWith(matrix.python-version, '3.10')
run: |
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult).
@@ -173,7 +199,7 @@ jobs:
&& startsWith(github.ref, 'refs/tags')
&& startsWith(runner.os, 'Mac')
&& !startsWith(matrix.python-version, 'pypy')
- && !startsWith(matrix.python-version, '3.11.0-beta.1')
+ && !startsWith(matrix.python-version, '3.11.0-beta.3')
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
@@ -195,7 +221,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-beta.1"
+ - "3.11.0-beta.3"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest