| 1 |
on: |
| 2 |
push: |
| 3 |
pull_request: |
| 4 |
schedule: |
| 5 |
- cron: '30 13 * * *' |
| 6 |
permissions: { } |
| 7 |
jobs: |
| 8 |
wheel: |
| 9 |
strategy: |
| 10 |
fail-fast: false |
| 11 |
matrix: |
| 12 |
os: |
| 13 |
- 'ubuntu-22.04' |
| 14 |
- 'macos-13' |
| 15 |
- 'windows-2022' |
| 16 |
py: |
| 17 |
- 'pypy-3.10' |
| 18 |
- 'pypy-3.11' |
| 19 |
arch: |
| 20 |
- 'x86' |
| 21 |
- 'x64' |
| 22 |
exclude: |
| 23 |
- os: 'ubuntu-22.04' |
| 24 |
arch: 'x86' |
| 25 |
- os: 'macos-13' |
| 26 |
arch: 'x86' |
| 27 |
- os: 'windows-2022' |
| 28 |
py: 'pypy-3.11' |
| 29 |
arch: 'x86' |
| 30 |
runs-on: ${{ matrix.os }} |
| 31 |
env: |
| 32 |
# Make all compile warnings fatal. |
| 33 |
ZSTD_WARNINGS_AS_ERRORS: '1' |
| 34 |
# Activate Python development mode so we get warnings. |
| 35 |
PYTHONDEVMODE: '1' |
| 36 |
steps: |
| 37 |
- name: Set up Python |
| 38 |
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
| 39 |
with: |
| 40 |
python-version: ${{ matrix.py }} |
| 41 |
architecture: ${{ matrix.arch }} |
| 42 |
|
| 43 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 44 |
with: |
| 45 |
persist-credentials: false |
| 46 |
|
| 47 |
- name: Build |
| 48 |
run: | |
| 49 |
python -m pip -v wheel -w wheelhouse . |
| 50 |
|
| 51 |
test: |
| 52 |
strategy: |
| 53 |
fail-fast: false |
| 54 |
matrix: |
| 55 |
os: |
| 56 |
- 'ubuntu-22.04' |
| 57 |
- 'macos-13' |
| 58 |
- 'windows-2022' |
| 59 |
py: |
| 60 |
- 'pypy-3.10' |
| 61 |
- 'pypy-3.11' |
| 62 |
arch: |
| 63 |
- 'x86' |
| 64 |
- 'x64' |
| 65 |
exclude: |
| 66 |
- os: 'ubuntu-22.04' |
| 67 |
arch: 'x86' |
| 68 |
- os: 'macos-13' |
| 69 |
arch: 'x86' |
| 70 |
- os: 'windows-2022' |
| 71 |
py: 'pypy-3.11' |
| 72 |
arch: 'x86' |
| 73 |
runs-on: ${{ matrix.os }} |
| 74 |
env: |
| 75 |
# Enable fuzzing tests, other expensive tests. |
| 76 |
ZSTD_SLOW_TESTS: '1' |
| 77 |
# Make all compile warnings fatal. |
| 78 |
ZSTD_WARNINGS_AS_ERRORS: '1' |
| 79 |
# More thorough fuzzing coverage. |
| 80 |
HYPOTHESIS_PROFILE: 'ci' |
| 81 |
# Activate Python development mode so we get warnings. |
| 82 |
PYTHONDEVMODE: '1' |
| 83 |
steps: |
| 84 |
- name: Set up Python |
| 85 |
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
| 86 |
with: |
| 87 |
python-version: ${{ matrix.py }} |
| 88 |
architecture: ${{ matrix.arch }} |
| 89 |
|
| 90 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 91 |
with: |
| 92 |
persist-credentials: false |
| 93 |
|
| 94 |
- name: Install uv |
| 95 |
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0 |
| 96 |
with: |
| 97 |
version: "0.8.11" |
| 98 |
|
| 99 |
- name: Test |
| 100 |
run: | |
| 101 |
uv -v run --locked pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/ |