This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch OPENNLP-1688
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/OPENNLP-1688 by this push:
new 50a18313 x
50a18313 is described below
commit 50a1831315fe28a1ffbefa399bb97ced073728ef
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri Jan 17 13:33:02 2025 +0100
x
---
.github/workflows/shell-tests.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/shell-tests.yml
b/.github/workflows/shell-tests.yml
index 4ff6e1ad..01ff9921 100644
--- a/.github/workflows/shell-tests.yml
+++ b/.github/workflows/shell-tests.yml
@@ -168,11 +168,11 @@ jobs:
# Set OPENNLP_HOME dynamically in the environment
$OPENNLP_HOME_PATH = "$Destination\$EXTRACTED_DIR"
Write-Host "OPENNLP_HOME=$OPENNLP_HOME_PATH" # Debugging
+
+ # Ensure OPENNLP_HOME is recognized in the current session
+ $env:OPENNLP_HOME = $OPENNLP_HOME_PATH
+ $env:PATH = "$env:OPENNLP_HOME\bin;$env:PATH"
- # Set the environment variable for future steps
- echo "OPENNLP_HOME=$OPENNLP_HOME_PATH" >> $GITHUB_ENV
- echo "$OPENNLP_HOME_PATH\bin" >> $GITHUB_PATH
-
Invoke-Pester -Script
"./opennlp-distr/src/test/ps/test_opennlp.Tests.ps1" -Output Detailed
shell: pwsh
env: