Skip to content

Commit 2f5a31d

Browse files
authored
ci: don't run integrations tests without openai api key (elastic#47)
* ci: don't run integrations tests without openai api key CI runs from PR done from forks are failing the integrations tests step because the OPENAI_API_KEY secret is not available to them.
1 parent 0eef232 commit 2f5a31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
working-directory: ${{ env.working_dir }}
7373
- run: pytest
7474
working-directory: ${{ env.working_dir }}
75-
- if: ${{ env[matrix.python-version] == '3.12' && !env[matrix.openai-version] }}
75+
- if: ${{ env[matrix.python-version] == '3.12' && !env[matrix.openai-version] && env.OPENAI_API_KEY != '' }}
7676
# Only run on latest python and openai client version because we are calling openai
7777
run: pytest --integration-tests
7878
working-directory: ${{ env.working_dir }}

0 commit comments

Comments
 (0)