diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7988ba1b..ee94e0e34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,13 @@ on: pull_request: schedule: - cron: '0 6 * * *' + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} @@ -93,6 +100,10 @@ jobs: if: github.event_name == 'schedule' run: echo PYTEST_ADDOPTS=--scheduled >> "$GITHUB_ENV" + - name: "(debug mode) Setup tmate session" + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + - name: Run all tests if: matrix.mode != 'dandi-api' run: |