Skip to content

Commit e5c4b35

Browse files
committed
CI test nogil
1 parent 42307f0 commit e5c4b35

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ jobs:
3838
run: |
3939
pixi run doc
4040
CMD=doctest pixi run doc
41+
- name: Test nogil
42+
run: |
43+
pixi run nogil-eta

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ build-wheel = "rm -rf dist && python -m build -wnx -Cinstall-args=--tags=runtime
102102
build-sdist = "rm -rf dist && python -m build --sdist"
103103
rebuild = "rm -rf build && pip install --no-deps --force-reinstall -e ."
104104

105-
# Needed on Windows CI to compile with Visual Studio compiler
106-
# otherwise Meson detects a MINGW64 platform and use MINGW64
107-
# toolchain
108-
[tool.pixi.feature.build.target.win-64.tasks]
109-
rebuild = "rm -rf build && pip install --no-deps --force-reinstall -e . -Csetup-args=--vsenv"
110-
111105
[tool.pixi.feature.fmt.tasks]
112106
fmt = { cmd = "black .", cwd = "fastcan" }
113107

@@ -131,6 +125,14 @@ nogil-eta = { cmd = "python -Xgil=0 -m timeit -n 5 -s 'import numpy as np; from
131125
"nogil-build",
132126
] }
133127

128+
# Needed on Windows CI to compile with Visual Studio compiler
129+
# otherwise Meson detects a MINGW64 platform and use MINGW64
130+
# toolchain
131+
[tool.pixi.feature.build.target.win-64.tasks]
132+
rebuild = "rm -rf build && pip install --no-deps --force-reinstall -e . -Csetup-args=--vsenv"
133+
[tool.pixi.feature.nogil.target.win-64.tasks]
134+
nogil-build = { cmd = "pip install --editable . --verbose --no-build-isolation --config-settings editable-verbose=true -Csetup-args=--vsenv" }
135+
134136
[tool.pixi.environments]
135137
dev = ["docs", "test", "build"]
136138
lint = { features = ["fmt", "lint", "type"], no-default-feature = true }

0 commit comments

Comments
 (0)