mirror of
https://github.com/davidhalter/parso.git
synced 2026-02-28 04:22:37 +08:00
Add a way to debug github CI
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -1,6 +1,14 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
debug_ssh_session:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTEST_ADDOPTS: --color=yes
|
PYTEST_ADDOPTS: --color=yes
|
||||||
@@ -18,6 +26,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
pip install .[qa] .[testing]
|
pip install .[qa] .[testing]
|
||||||
|
- name: Setup tmate session
|
||||||
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
if: ${{ inputs.debug_ssh_session }}
|
||||||
|
with:
|
||||||
|
limit-access-to-actor: true
|
||||||
- name: Run Flake8
|
- name: Run Flake8
|
||||||
# Ignore F401, which are unused imports. flake8 is a primitive tool and is sometimes wrong.
|
# Ignore F401, which are unused imports. flake8 is a primitive tool and is sometimes wrong.
|
||||||
run: flake8 --extend-ignore F401 parso test/*.py setup.py scripts/
|
run: flake8 --extend-ignore F401 parso test/*.py setup.py scripts/
|
||||||
|
|||||||
12
.github/workflows/debug_ci.yml
vendored
Normal file
12
.github/workflows/debug_ci.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name: Debug CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
uses: ./.github/workflows/tests.yml
|
||||||
|
with:
|
||||||
|
all_tests: true
|
||||||
|
debug_ssh_session: true
|
||||||
|
secrets: inherit
|
||||||
Reference in New Issue
Block a user