From 63f359aad70873e8d65d48328d1d6785acce3efc Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 17 Sep 2024 22:50:21 -0700 Subject: [PATCH] install --- .github/actions/test-ruby/action.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-ruby/action.yml b/.github/actions/test-ruby/action.yml index 043cc21e..44e1d7cb 100644 --- a/.github/actions/test-ruby/action.yml +++ b/.github/actions/test-ruby/action.yml @@ -53,8 +53,20 @@ runs: cache: 'pip' - run: pip -V shell: bash - - run: pip install -r requirements.txt + - run: | + python -m pip install --upgrade pip + pip install -r requirements.txt shell: bash + - run: pip -V + shell: bash + + - name: Download NLTK data + run: | + python -m nltk.downloader -d /usr/local/share/nltk_data punkt punkt_tab + + - name: Verify NLTK data installation + run: | + python -c "import nltk; nltk.data.path.append('/usr/local/share/nltk_data'); nltk.tokenize.word_tokenize('This is a test.')" # - name: Additional Setup # if: inputs.ADDITIONAL_SETUP != '[]'