summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@plyp.com>2022-11-06 12:04:43 +0100
committerJens Vagelpohl <jens@plyp.com>2022-11-06 12:04:43 +0100
commit11ae69996a8144eaed372c24d3ffb8baa75c981d (patch)
tree4e999d04a824c7e23a4e16868859322303d6050b /.github
parente5e6e3f3e62a1fb244c887d940c782e9d102a973 (diff)
downloadzope-security-11ae69996a8144eaed372c24d3ffb8baa75c981d.tar.gz
- prepare release 5.5
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml40
1 files changed, 8 insertions, 32 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index efb9837..90a088b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -105,7 +105,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-rc.1"
+ - "3.11"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest
@@ -131,7 +131,7 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
- echo "::set-output name=dir::$(pip cache dir)"
+ echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2
@@ -154,16 +154,6 @@ jobs:
pip install -U pip
pip install -U setuptools wheel twine cffi
- - name: Build zope.security (3.11.0-rc.1)
- if: ${{ startsWith(matrix.python-version, '3.11.0-rc.1') }}
- 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 (Python 3.10 on MacOS)
if: >
startsWith(runner.os, 'Mac')
@@ -210,7 +200,6 @@ jobs:
&& startsWith(github.ref, 'refs/tags')
&& startsWith(runner.os, 'Mac')
&& !startsWith(matrix.python-version, 'pypy')
- && !startsWith(matrix.python-version, '3.11.0-rc.1')
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
@@ -232,7 +221,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-rc.1"
+ - "3.11"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest
@@ -258,7 +247,7 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
- echo "::set-output name=dir::$(pip cache dir)"
+ echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2
@@ -273,21 +262,7 @@ jobs:
with:
name: zope.security-${{ runner.os }}-${{ matrix.python-version }}.whl
path: dist/
- - name: Install zope.security 3.11.0-rc.1
- if: ${{ startsWith(matrix.python-version, '3.11.0-rc.1') }}
- run: |
- pip install -U wheel setuptools
- # coverage has a wheel on PyPI for a future python version which is
- # not ABI compatible with the current one, so build it from sdist:
- pip install -U --no-binary :all: coverage
- pip install -U 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"'
- # Unzip into src/ so that testrunner can find the .so files
- # when we ask it to load tests from that directory. This
- # might also save some build time?
- unzip -n dist/zope.security-*whl -d src
- pip install --pre -U -e .[test]
- name: Install zope.security
- if: ${{ !startsWith(matrix.python-version, '3.11.0-rc.1') }}
run: |
pip install -U wheel setuptools
pip install -U coverage
@@ -349,7 +324,7 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
- echo "::set-output name=dir::$(pip cache dir)"
+ echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2
@@ -400,7 +375,7 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
- echo "::set-output name=dir::$(pip cache dir)"
+ echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2
@@ -430,6 +405,7 @@ jobs:
manylinux:
runs-on: ubuntu-20.04
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
# We use a regular Python matrix entry to share as much code as possible.
strategy:
matrix:
@@ -452,7 +428,7 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
- echo "::set-output name=dir::$(pip cache dir)"
+ echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2