-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PYTHON-3745 Upload core files and enable tmate on actions
- Loading branch information
1 parent
2df33d8
commit db48b34
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|