-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (41 loc) · 1.18 KB
/
test_python_nogil.yml
File metadata and controls
42 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Python nogil Tests
on:
push:
branches:
- main
merge_group:
workflow_dispatch:
jobs:
nogil-tests:
name: Python nogil
runs-on: ubuntu-24.04
env:
AMICI_SKIP_CMAKE_TESTS: "TRUE"
AMICI_PARALLEL_COMPILE: ""
steps:
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
- name: Set up Python 3.13 free-threaded
uses: actions/setup-python@v6
with:
python-version: '3.13'
freethreaded: true
- uses: actions/checkout@v5
with:
fetch-depth: 20
- name: Install apt dependencies
uses: ./.github/actions/install-apt-dependencies
- name: Install python package
run: |
python3 -m venv venv --clear
source venv/bin/activate
pip install --upgrade pip wheel
pip install numpy sympy cmake-build-extension==0.6.0 swig cython pkgconfig
AMICI_BUILD_TEMP="python/sdist/build/temp" \
pip install --verbose -e python/sdist[test] --no-build-isolation
- run: source venv/bin/activate && pip3 install "sympy>1.12"
- name: Python tests
env:
AMICI_NOGIL: "1"
run: |
source venv/bin/activate && \
pytest tests/test_nogil.py -vv