diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 355d121..01b52a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,14 @@ name: Build -on: [push, pull_request] +on: + push: + pull_request: + workflow_call: + inputs: + debug_ssh_session: + required: false + type: boolean + env: PYTEST_ADDOPTS: --color=yes @@ -18,6 +26,11 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel 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 # 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/ diff --git a/.github/workflows/debug_ci.yml b/.github/workflows/debug_ci.yml new file mode 100644 index 0000000..4b0c4c3 --- /dev/null +++ b/.github/workflows/debug_ci.yml @@ -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