Skip to content

Commit

Permalink
fix(test): set fake OPENAI_API_KEY in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
valeeraZ committed Feb 14, 2024
1 parent 264d38f commit 6f881c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Run Unit Tests

on: [push]

env:
OPENAI_API_KEY: "fake_key"

jobs:
build:

Expand All @@ -21,9 +24,6 @@ jobs:
pip install poetry
poetry install
- name: Set environment variable
run: echo "OPENAI_API_KEY=fake_key" >> $GITHUB_sENV

- name: Run tests with coverage
run: |
poetry run pytest --cov=api
Expand Down

0 comments on commit 6f881c0

Please sign in to comment.