Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stanfordnlp/stanza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Bauer <horatio@gmail.com>2022-01-24 02:26:01 +0300
committerJohn Bauer <horatio@gmail.com>2022-04-23 07:36:46 +0300
commit0a9e2625f6d679fe48df94d4568c1d64e706c9db (patch)
tree43acc4006a05f86adcd3161b28444c6370aa7666 /.github
parent06946abd1dc869ef00ecfa6c90a5ec9d4d08cddb (diff)
Use setup.py to download corenlp and the corenlp models used by the tests.
With this ability, the tests now get their own corenlp installation (currently "main")
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/stanza-tests.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/stanza-tests.yaml b/.github/workflows/stanza-tests.yaml
index baae4e24..7c877f95 100644
--- a/.github/workflows/stanza-tests.yaml
+++ b/.github/workflows/stanza-tests.yaml
@@ -17,14 +17,17 @@ jobs:
echo "Setting up environment..."
bash
. /home/stanzabuild/miniconda3/etc/profile.d/conda.sh
- export CORENLP_HOME=/home/stanzabuild/stanford-corenlp-4.4.0
- export CLASSPATH=/home/stanzabuild/stanford-corenlp-4.4.0/*:
+ export STANZA_TEST_HOME=/home/stanzabuild/stanza-github-actions/actions-runner/_work/stanza/stanza/stanza_test
+ export CORENLP_HOME=$STANZA_TEST_HOME/corenlp_dir
+ export CLASSPATH=$CORENLP_HOME/*:
+ echo CORENLP_HOME=$CORENLP_HOME
+ echo CLASSPATH=$CLASSPATH
# install from stanza repo being evaluated
pwd
pip install -e .
# set up for tests
echo "Running stanza test set up..."
- rm -rf /home/stanzabuild/stanza-github-actions/actions-runner/_work/stanza/stanza/stanza_test
+ rm -rf $STANZA_TEST_HOME
python stanza/tests/setup.py
# run tests
echo "Running tests..."