Skip to content

Commit

Permalink
fix: make OPENAI_API_KEY available in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber committed Sep 23, 2024
1 parent b895d94 commit e5f9a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Start Dev Container
run: |
git config --global init.defaultBranch main
PYTHON_VERSION=${{ matrix.python-version }} devcontainer up --workspace-folder .
PYTHON_VERSION=${{ matrix.python-version }} OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} devcontainer up --workspace-folder .
- name: Lint package
run: devcontainer exec --workspace-folder . poe lint
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
- OPENAI_API_KEY
- POETRY_PYPI_TOKEN_PYPI
depends_on:
- postgres
Expand All @@ -27,6 +28,7 @@ services:
entrypoint: []
command: [ "sh", "-c", "sudo chown user $$SSH_AUTH_SOCK && cp --update /opt/build/poetry/poetry.lock /workspaces/raglite/ && mkdir -p /workspaces/raglite/.git/hooks/ && cp --update /opt/build/git/* /workspaces/raglite/.git/hooks/ && zsh" ]
environment:
- OPENAI_API_KEY
- POETRY_PYPI_TOKEN_PYPI
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
depends_on:
Expand Down

0 comments on commit e5f9a07

Please sign in to comment.