@@ -21,26 +21,24 @@ jobs:
2121 run_test :
2222 runs-on : ${{ inputs.runs-on }}
2323 steps :
24- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
26- with :
27- python-version : ${{ inputs.python-version }}
28- freethreaded : ${{ inputs.freethreaded }}
29- - name : Install uv
30- uses : astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1
31- with :
32- version : " 0.9.5"
24+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+ - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
26+ with :
27+ python-version : ${{ inputs.python-version }}
28+ freethreaded : ${{ inputs.freethreaded }}
29+ - name : Install uv
30+ uses : astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1
31+ with :
32+ version : " 0.9.5"
3333
34- - name : Install package
35- run : |
36- which python
37- python --version
38- uv pip install . -r ${{ inputs.requirements-file }} -v --reinstall --system
39- python -c "import parsnip; print('parsnip', parsnip.__version__)"
34+ - name : Install package
35+ run : |
36+ which python
37+ python --version
38+ uv pip install . -r ${{ inputs.requirements-file }} -v --reinstall --system
39+ python -c "import parsnip; print('parsnip', parsnip.__version__)"
4040
41- if [ "${{ inputs.freethreaded }}" = "true" ]; then
42- python -c "import sys; print('GIL: ', sys._is_gil_enabled)"
43- fi
41+ python -c "import sys; print('GIL:', getattr(sys, '_is_gil_enabled', lambda: 'unknown')())"
4442
45- - name : Test with pytest
46- run : python -m ${{ runner.os != 'Windows' && 'pytest' || 'pytest tests' }} -v -n auto
43+ - name : Test with pytest
44+ run : python -m ${{ runner.os != 'Windows' && 'pytest' || 'pytest tests' }} -v -n auto
0 commit comments