Skip to content

Commit

Permalink
PYTHON-3745 Upload core files and enable tmate on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Feb 8, 2024
1 parent 2df33d8 commit db48b34
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 5
with:
detached: true
limit-access-to-actor: true
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand All @@ -55,9 +61,22 @@ jobs:
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- name: Set cores to get stored in /cores
run: |
sudo mkdir /cores
sudo chmod 777 /cores
# Core filenames will be of the form executable.pid.timestamp:
sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
- name: Run tests
run: |
# Allow core dumps
ulimit -c unlimited
tox -m test
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: cores
path: /cores

doctest:
runs-on: ubuntu-latest
Expand Down

0 comments on commit db48b34

Please sign in to comment.