Skip to content

Commit f12bdeb

Browse files
committed
Try to capture a core
1 parent 6cdb69a commit f12bdeb

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
runs-on: ${{ matrix.os }}
2121
strategy:
2222
matrix:
23-
os: ["ubuntu-22.04", "macos-13", "windows-2022"]
23+
# os: ["ubuntu-22.04", "macos-13", "windows-2022"]
24+
os: ["ubuntu-22.04", "ubuntu-24.04"]
2425
python_version:
25-
- '3.9'
26-
- '3.10'
27-
- '3.11'
26+
# - '3.9'
27+
# - '3.10'
28+
# - '3.11'
2829
- '3.12'
29-
- '3.13'
30+
# - '3.13'
3031

3132
steps:
3233
- uses: actions/checkout@v4
@@ -37,6 +38,20 @@ jobs:
3738
run: |
3839
pip install git+https://github.com/robotpy/pyfrc.git@separate-process
3940
pip install 'robotpy[commands2,romi]<2026.0.0,>=2025.0.0b3' numpy pytest
41+
- name: Set cores to get stored in /cores
42+
run: |
43+
sudo mkdir /cores
44+
sudo chmod 777 /cores
45+
# Core filenames will be of the form executable.pid.timestamp:
46+
sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
4047
- name: Run tests
41-
run: bash run_tests.sh
48+
run: |
49+
ulimit -c unlimited
50+
bash run_tests.sh
4251
shell: bash
52+
53+
- uses: actions/upload-artifact@v4
54+
if: ${{ failure() }} # Run only if something went wrong
55+
with:
56+
name: cores-${{ matrix.os }}
57+
path: /cores

0 commit comments

Comments
 (0)