Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Skip integration tests if env var is missing #6703

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

silvanocerza
Copy link
Contributor

Proposed Changes:

Skip integration tests if OPENAI_API_KEY is not set.

PR opened by external contributors don't have access to CI secrets, so they're always going to fail.

This change will prevent those failures.

Example of PR check failing 👇
https://github.com/deepset-ai/haystack/actions/runs/7445097734/job/20253017272?pr=6680

How did you test it?

Ran tests locally.

Notes for the reviewer

Let's update #6680 after this is merged.

Checklist

@silvanocerza silvanocerza added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Jan 8, 2024
@silvanocerza silvanocerza self-assigned this Jan 8, 2024
@silvanocerza silvanocerza marked this pull request as ready for review January 8, 2024 15:50
@silvanocerza silvanocerza requested a review from a team as a code owner January 8, 2024 15:50
@silvanocerza silvanocerza requested review from vblagoje and removed request for a team January 8, 2024 15:50
@github-actions github-actions bot added topic:tests 2.x Related to Haystack v2.0 labels Jan 8, 2024
@silvanocerza silvanocerza requested review from masci and removed request for vblagoje January 8, 2024 15:51
@coveralls
Copy link
Collaborator

coveralls commented Jan 8, 2024

Pull Request Test Coverage Report for Build 7449838071

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 87.352%

Totals Coverage Status
Change from base Build 7449398495: 0.0%
Covered Lines: 4054
Relevant Lines: 4641

💛 - Coveralls

@silvanocerza silvanocerza merged commit 607e7d1 into main Jan 8, 2024
33 checks passed
@silvanocerza silvanocerza deleted the skip-test-missing-env branch January 8, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 ignore-for-release-notes PRs with this flag won't be included in the release notes. topic:tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants