Skip to content

Commit

Permalink
Adding build for azure-openai profile
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Deandrea <edeandrea@redhat.com>
  • Loading branch information
edeandrea committed Dec 15, 2023
1 parent 63a9728 commit 4901f2f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/simple-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,18 @@ jobs:
-Dmaven.compiler.release=${{ matrix.java }}
# This won't work until https://github.com/quarkiverse/quarkus-langchain4j/issues/149 is released
- name: Build/test with Azure OpenAI
if: matrix.project == 'rest-narration'
working-directory: ${{ matrix.project }}
env:
QUARKUS_PROFILE: azure-openai
QUARKUS_TEST_PROFILE: azure-openai
QUARKUS_TEST_INTEGRATION_TEST_PROFILE: azure-openai
run: |
./mvnw -B clean verify \
-Dquarkus.http.host=0.0.0.0 \
-Dmaven.compiler.release=${{ matrix.java }}
# Will enable it at that point
# - name: Build/test with Azure OpenAI
# if: matrix.project == 'rest-narration'
# working-directory: ${{ matrix.project }}
# env:
# QUARKUS_PROFILE: azure-openai
# QUARKUS_TEST_PROFILE: azure-openai
# QUARKUS_TEST_INTEGRATION_TEST_PROFILE: azure-openai
# run: |
# ./mvnw -B clean verify \
# -Dquarkus.http.host=0.0.0.0 \
# -Dmaven.compiler.release=${{ matrix.java }}

native-build-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -150,14 +151,15 @@ jobs:
-Dmaven.compiler.release=${{ matrix.java }}
# This won't work until https://github.com/quarkiverse/quarkus-langchain4j/issues/149 is released
- name: Build/test with Azure OpenAI
if: matrix.project == 'rest-narration'
working-directory: ${{ matrix.project }}
env:
QUARKUS_PROFILE: azure-openai
QUARKUS_TEST_PROFILE: azure-openai
QUARKUS_TEST_INTEGRATION_TEST_PROFILE: azure-openai
run: |
./mvnw -B clean verify -Pnative \
-Dquarkus.http.host=0.0.0.0 \
-Dmaven.compiler.release=${{ matrix.java }}
# Will enable it at that point
# - name: Build/test with Azure OpenAI
# if: matrix.project == 'rest-narration'
# working-directory: ${{ matrix.project }}
# env:
# QUARKUS_PROFILE: azure-openai
# QUARKUS_TEST_PROFILE: azure-openai
# QUARKUS_TEST_INTEGRATION_TEST_PROFILE: azure-openai
# run: |
# ./mvnw -B clean verify -Pnative \
# -Dquarkus.http.host=0.0.0.0 \
# -Dmaven.compiler.release=${{ matrix.java }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
//@PactBroker(url = "https://quarkus-super-heroes.pactflow.io")
//@EnabledIfSystemProperty(named = "pactbroker.auth.token", matches = ".+", disabledReason = "pactbroker.auth.token system property not set")
public class ContractVerificationTests {
private static final String NO_RANDOM_VILLAIN_FOUND_STATE = "No random villain found";

@ConfigProperty(name = "quarkus.http.test-port")
int quarkusPort;

Expand Down

0 comments on commit 4901f2f

Please sign in to comment.