Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de1c9c8

Browse files
committed
Disable TRegex (Graal) JIT compilation
TRegex JIT-ing really doesn't like the UAP workload one bit. It basically uses 3 cores worth of CPU to do nothing as the runtime is the same with and without compilation. Sadge. Might as well cut it off, no sense wasting CPU time on the runners.
1 parent 6fb7b58 commit de1c9c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
artifact: dist/*.tar.gz
9494
- source: wheel
9595
artifact: dist/*.whl
96+
- opts: ""
97+
- python-version: graalpy-24
98+
opts: "--experimental-options --engine.CompileOnly='~tregex re'"
9699
steps:
97100
- name: Checkout working copy
98101
uses: actions/checkout@v4
@@ -127,6 +130,6 @@ jobs:
127130
name: ${{ matrix.source }}
128131
path: dist/
129132
- name: install package in environment
130-
run: pip install ${{ matrix.artifact || '.' }}
133+
run: python -m pip install ${{ matrix.artifact || '.' }}
131134
- name: run tests
132-
run: pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra
135+
run: python ${{ matrix.opts }} -m pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra

0 commit comments

Comments
 (0)