File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,36 @@ jobs:
167167 with :
168168 name : docs-${{ github.run_id }}-${{ github.sha }}
169169 path : ./build/docs/html/
170+ - name : Set cores to get stored in /cores
171+ run : |
172+ if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "darwin"* ]]; then
173+ # TODO (Caleb Aikens) figure out how to get Windows core dumps
174+ sudo mkdir /cores
175+ sudo chmod 777 /cores
176+ # Core filenames will be of the form executable.pid.timestamp:
177+ sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
178+ fi
170179 - name : Run Python tests (pytest)
171180 run : |
181+ if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "darwin"* ]]; then
182+ # TODO (Caleb Aikens) figure out how to get Windows core dumps
183+ ulimit -c unlimited
184+ fi
172185 poetry run python -m pip install --force-reinstall --verbose ./dist/*
173186 poetry run python -m pytest tests/python
174187 - name : Run JS tests (peter-jr)
175188 run : |
189+ if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "darwin"* ]]; then
190+ # TODO (Caleb Aikens) figure out how to get Windows core dumps
191+ ulimit -c unlimited
192+ fi
176193 poetry run bash ./peter-jr ./tests/js/
194+ - uses : actions/upload-artifact@v3
195+ if : ${{ failure() && matrix.os != 'windows-2019' }} # Run only if something went wrong
196+ # TODO (Caleb Aikens) figure out how to get Windows core dumps
197+ with :
198+ name : cores
199+ path : /cores
177200 sdist :
178201 runs-on : ubuntu-20.04
179202 steps :
You can’t perform that action at this time.
0 commit comments