Skip to content

Commit 53f20bf

Browse files
committed
chore: add GitHub Action workflow for tmate debug sessions
1 parent e99ef20 commit 53f20bf

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/tmate.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: tmate
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
os:
7+
description: 'os'
8+
type: string
9+
required: false
10+
default: "ubuntu-latest"
11+
options:
12+
- "macos-12"
13+
- "ubuntu-latest"
14+
py_ver:
15+
description: 'py ver'
16+
type: string
17+
required: false
18+
default: "3.9"
19+
options:
20+
- "3.12"
21+
- "3.11"
22+
- "3.10"
23+
- "3.9"
24+
- "3.8"
25+
jobs:
26+
tmate:
27+
runs-on: ${{ inputs.os }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
persist-credentials: false
32+
fetch-depth: 0
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ inputs.py_ver }}
36+
- name: Install poetry
37+
run: |
38+
pipx install poetry
39+
poetry install
40+
shell: bash
41+
- name: Setup tmate session
42+
uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)