Skip to content

Bump pypa/cibuildwheel from 2.19.1 to 2.19.2 #129

Bump pypa/cibuildwheel from 2.19.1 to 2.19.2

Bump pypa/cibuildwheel from 2.19.1 to 2.19.2 #129

Workflow file for this run

# -*- coding: utf-8 -*-
# :Project: python-rapidjson -- Github Actions configuration
# :Created: Fri Oct 2 06:52:59 2020 CEST
# :Author: Martin Thoma <info@martin-thoma.de>
# :License: MIT License
# :Copyright: © 2020 Martin Thoma
# :Copyright: © 2020, 2021, 2022, 2023, 2024 Lele Gaifax
#
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# and
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Build, test and upload to PyPI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
name: All tests, on current Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements-test.txt
pip install .
- name: Tests
run: |
pytest tests
- name: Doctests
run: |
make -C docs doctest -e PYTHON=$(which python3)
- name: Typing stub tests
run: |
stubtest rapidjson
debug-tests:
name: Memory leak tests, on current debug build Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: deadsnakes/action@v3.1.0
with:
python-version: ${{ matrix.python-version }}
debug: true
- name: Install dependencies
run: |
pip install -r requirements-test.txt
pip install .
- run: |
pytest tests
build_wheels:
name: Build wheels on ${{matrix.arch}} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
- macos-12
- windows-2019
arch:
- auto
include:
- os: ubuntu-22.04
arch: aarch64
- os: ubuntu-22.04
arch: ppc64le
- os: macos-14
arch: arm64
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: true
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: docker/setup-qemu-action@v3
if: ${{ matrix.arch == 'aarch64' || matrix.arch == 'ppc64le' }}
name: Set up QEMU
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_TEST_REQUIRES: "pytest pytest-benchmark pytz"
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_SKIP: "cp2* cp33* cp34* cp35* cp36* cp37* pp*"
CIBW_PRERELEASE_PYTHONS: True
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wheels-for-${{ matrix.os }}-${{ matrix.arch }}
path: ./wheelhouse/*.whl
upload_wheels:
name: Upload wheels to PyPI
needs: build_wheels
runs-on: ubuntu-latest
# Upload to PyPI on every tag starting with 'v'
# FIXME: for some reason, the job is skipped, although the configuration is
# almost identical to the one I use on pglast... let's try to temporarily
# remove the condition
#if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-for-*
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy