From 06d965bb71788fcb4d32dfc65c048739ca6581d5 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Tue, 14 May 2024 21:56:11 -0700 Subject: [PATCH] add daily scheduled workflow and debug trigger --- .github/workflows/test.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ed0809..27bd7bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,17 @@ name: test -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: + inputs: + debug: + description: 'Set to on, to open ssh debug session.' + required: true + default: 'off' + schedule: + - cron: '0 13 * * *' # Runs at 6 am pacific every day + jobs: @@ -69,6 +80,18 @@ jobs: poetry run pip install --upgrade pip poetry install -E html -E png -E pdf poetry run pip install -U "${{ matrix.sphinx-version }}" + + - name: Install Emacs + if: ${{ github.event.inputs.debug == 'on' }} + run: | + sudo apt install emacs + - name: Setup tmate session + if: ${{ github.event.inputs.debug == 'on' }} + uses: mxschmitt/action-tmate@v3 + with: + detached: true + timeout-minutes: 60 + - name: Run Unit Tests run: | poetry run pytest