From 3343a1d101e044c95d80923424df87ecebad4a5a Mon Sep 17 00:00:00 2001 From: David Cavazos Date: Mon, 4 Dec 2023 17:14:09 -0800 Subject: [PATCH] add manual action runs (#19) Change-Id: I25ca28f9a102dcd27f501104c0a9cb636a6d63f1 --- .github/workflows/test-webhook.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-webhook.yml b/.github/workflows/test-webhook.yml index d62c0ea..bf74400 100644 --- a/.github/workflows/test-webhook.yml +++ b/.github/workflows/test-webhook.yml @@ -32,6 +32,7 @@ on: paths: - .github/workflows/test-webhook.yaml - webhook/** + workflow_dispatch: # Manual runs schedule: # Run tests every day at UTC 9:00A - cron: 0 9 * * * @@ -55,6 +56,7 @@ jobs: contents: read id-token: write + steps: - uses: actions/checkout@v4 @@ -73,19 +75,19 @@ jobs: uses: actions/cache@v3 with: path: webhook/env - key: ${{ runner.os }}-env-${{ hashFiles('webhook/requirements.txt') }} + key: ${{ runner.os }}-env-${{ hashFiles('webhook/requirements.txt', 'webhook/requirements-test.txt') }} - name: Install dependencies + working-directory: webhook run: | python -m venv env source env/bin/activate pip install -r requirements.txt -r requirements-test.txt - working-directory: webhook - name: Run tests + working-directory: webhook run: | source env/bin/activate pytest - working-directory: webhook env: PYTHONPATH: ${{ github.workspace }}/webhook/