Skip to content

Commit

Permalink
ci: Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Sep 20, 2024
1 parent 6e17a9e commit 6878d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
permissions:
contents: write

env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

jobs:
publish:
name: Publish
Expand All @@ -23,6 +20,7 @@ jobs:
additional-test-arguments: '--logger GitHubActions'
secrets:
nuget-key: ${{ secrets.NUGET_KEY }}
api-key: ${{ secrets.ANTHROPIC_API_KEY }}

release:
name: Release
Expand Down
1 change: 1 addition & 0 deletions src/tests/Anthropic.IntegrationTests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public partial class Tests
private static AnthropicApi GetAuthorizedApi()
{
var apiKey =
Environment.GetEnvironmentVariable("API_KEY") ??
Environment.GetEnvironmentVariable("ANTHROPIC_API_KEY") ??
throw new AssertInconclusiveException("ANTHROPIC_API_KEY environment variable is not found.");

Expand Down

0 comments on commit 6878d01

Please sign in to comment.