.github/workflows/pypy.yml #1458
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '30 13 * * *' | |
jobs: | |
wheel: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- 'ubuntu-22.04' | |
- 'macos-13' | |
- 'windows-2022' | |
py: | |
- 'pypy-3.9' | |
- 'pypy-3.10' | |
arch: | |
- 'x86' | |
- 'x64' | |
exclude: | |
- os: 'ubuntu-22.04' | |
arch: 'x86' | |
- os: 'macos-13' | |
arch: 'x86' | |
runs-on: ${{ matrix.os }} | |
env: | |
# Make all compile warnings fatal. | |
ZSTD_WARNINGS_AS_ERRORS: '1' | |
# Activate Python development mode so we get warnings. | |
PYTHONDEVMODE: '1' | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
architecture: ${{ matrix.arch }} | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
python -m pip wheel -w wheelhouse . | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- 'ubuntu-22.04' | |
- 'macos-13' | |
- 'windows-2022' | |
py: | |
- 'pypy-3.9' | |
- 'pypy-3.10' | |
arch: | |
- 'x86' | |
- 'x64' | |
exclude: | |
- os: 'ubuntu-22.04' | |
arch: 'x86' | |
- os: 'macos-13' | |
arch: 'x86' | |
runs-on: ${{ matrix.os }} | |
env: | |
# Enable fuzzing tests, other expensive tests. | |
ZSTD_SLOW_TESTS: '1' | |
# Make all compile warnings fatal. | |
ZSTD_WARNINGS_AS_ERRORS: '1' | |
# More thorough fuzzing coverage. | |
HYPOTHESIS_PROFILE: 'ci' | |
# Activate Python development mode so we get warnings. | |
PYTHONDEVMODE: '1' | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
architecture: ${{ matrix.arch }} | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
pip install --require-hashes -r ci/requirements.pypy.txt | |
- name: Build | |
run: | | |
python -m pip install -e . | |
- name: Test | |
run: | | |
pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/ |