Add Python 3.14 to CI and wheels #190
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.rst' | |
| - '**/*.md' | |
| branches: | |
| - master | |
| - 'v[0-9].[0-9]' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'v[0-9].[0-9]' | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| run-tests: | |
| runs-on: ${{matrix.os}} | |
| timeout-minutes: 30 | |
| strategy: | |
| max-parallel: 15 | |
| matrix: | |
| python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10'] | |
| os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | |
| fail-fast: false | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| name: Python ${{ matrix.python-version }} ${{matrix.os}} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| cache-dependency-path: dev_requirements.txt | |
| - name: Install memray deps | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| sudo apt-get install build-essential python3-dev libdebuginfod-dev libunwind-dev liblz4-dev -y -qq | |
| - name: run tests | |
| env: | |
| MACOSX_DEPLOYMENT_TARGET: 10.14 | |
| run: | | |
| pip install -U pip setuptools wheel | |
| pip install -r dev_requirements.txt | |
| python setup.py build_ext --inplace | |
| python -m pytest | |
| - name: run tests with assertions enabled | |
| if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }} | |
| run: | | |
| python setup.py build_ext -UNDEBUG --inplace --force | |
| python -m pytest | |
| - name: build and install the wheel | |
| run: | | |
| python setup.py bdist_wheel |