Skip to content

Commit

Permalink
add manual action runs (#19)
Browse files Browse the repository at this point in the history
Change-Id: I25ca28f9a102dcd27f501104c0a9cb636a6d63f1
  • Loading branch information
davidcavazos authored Dec 5, 2023
1 parent ea0f037 commit 3343a1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * *

Expand All @@ -55,6 +56,7 @@ jobs:
contents: read
id-token: write


steps:
- uses: actions/checkout@v4

Expand All @@ -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/

0 comments on commit 3343a1d

Please sign in to comment.