install no-gil python from miniconda #12
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: | |
strategy: | |
matrix: | |
version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.version }}" | |
allow-prereleases: true | |
- name: Setup 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 |