Skip to content

Commit ebe971c

Browse files
authored
Enable Integration Tests #20
1 parent fe5e870 commit ebe971c

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,44 +46,43 @@ jobs:
4646
run: |
4747
dotnet test src --filter "FullyQualifiedName~Pinecone.Test.Unit"
4848
49-
# TODO: Uncomment to make integration tests live
50-
# integration-test:
51-
# runs-on: ubuntu-latest
52-
# steps:
53-
# - name: Checkout repo
54-
# uses: actions/checkout@v3
55-
56-
# - uses: actions/checkout@master
57-
58-
# - name: Setup .NET
59-
# uses: actions/setup-dotnet@v1
60-
# with:
61-
# dotnet-version: 8.x
62-
63-
# - name: Install tools
64-
# run: |
65-
# dotnet tool restore
66-
67-
# - name: Run Integration Tests
68-
# env:
69-
# PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
70-
# run: |
71-
# dotnet test src --filter "FullyQualifiedName~Pinecone.Test.Integration"
72-
49+
integration-test:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout repo
53+
uses: actions/checkout@v3
54+
55+
- uses: actions/checkout@master
56+
57+
- name: Setup .NET
58+
uses: actions/setup-dotnet@v1
59+
with:
60+
dotnet-version: 8.x
61+
62+
- name: Install tools
63+
run: |
64+
dotnet tool restore
65+
66+
- name: Run Integration Tests
67+
env:
68+
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
69+
run: |
70+
dotnet test src --filter "FullyQualifiedName~Pinecone.Test.Integration"
71+
7372
publish:
7473
needs: [compile]
7574
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7675
runs-on: ubuntu-latest
77-
76+
7877
steps:
7978
- name: Checkout repo
8079
uses: actions/checkout@v3
81-
80+
8281
- name: Setup .NET
8382
uses: actions/setup-dotnet@v1
8483
with:
8584
dotnet-version: 8.x
86-
85+
8786
- name: Publish
8887
env:
8988
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)