Skip to content

Commit d2cf5d4

Browse files
committed
Ensure nltk_data path is in the environment
1 parent 4473fde commit d2cf5d4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
minimal_download_test:
7979
name: Minimal NLTK Download Test
8080
runs-on: ubuntu-latest
81+
env:
82+
NLTK_DATA: /tmp/nltk_data
8183
steps:
8284
- uses: actions/checkout@v5
8385
- uses: actions/setup-python@v6
@@ -86,7 +88,7 @@ jobs:
8688
- run: |
8789
pip install --upgrade pip
8890
pip install --upgrade nltk
89-
python -c "import nltk; nltk.download('wordnet', download_dir='/tmp/nltk_data'); from nltk.corpus import wordnet; assert wordnet.synsets('dog'), 'Wordnet download failed or unusable'"
91+
python -c "import nltk; nltk.download('wordnet'); from nltk.corpus import wordnet; assert wordnet.synsets('dog'), 'Wordnet download failed or unusable'"
9092
9193
test:
9294
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}

0 commit comments

Comments
 (0)