Skip to content

Commit

Permalink
fix(test): Correct secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinci1it2000 committed Mar 13, 2024
1 parent bb5165b commit 5d96802
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
- cron: '0 11 11 * *'
push:
branches: [ master, dev ]
workflow_call:
secrets:
STRIPE_SECRET_KEY:
required: true
STRIPE_PUBLISHABLE_KEY:
required: true
STRIPE_WEBHOOK_SECRET_KEY:
required: true

jobs:
run-tests:
Expand Down
1 change: 1 addition & 0 deletions schedula/utils/form/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,6 @@ class Config:
SQLALCHEMY_TRACK_MODIFICATIONS = False

STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY")
assert STRIPE_SECRET_KEY.startswith('sk_')
STRIPE_PUBLISHABLE_KEY = os.environ.get("STRIPE_PUBLISHABLE_KEY")
STRIPE_WEBHOOK_SECRET_KEY = os.environ.get("STRIPE_WEBHOOK_SECRET_KEY")

0 comments on commit 5d96802

Please sign in to comment.