run with GIL disabled #13
Workflow file for this run
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
name: GIL Talk Demo | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python via Miniconda | |
uses: conda-incubator/setup-miniconda@v3.0.4 | |
with: | |
python-version: 3.13 | |
channels: defaults,ad-testing/label/py313_nogil | |
- name: Check Python version | |
run: | | |
python -VV | |
python -c "import sys; print(sys._is_gil_enabled())" | |
- name: Install dependencies | |
run: | | |
pip install setuptools | |
- name: Build and run tests | |
run: | | |
python python_c_extension/setup.py build | |
cp -r build/*/* python_c_extension | |
python -m unittest discover tests/ -vvv | |
env: | |
PYTHON_GIL: 0 |