Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
K0ntr4 authored Apr 10, 2024
1 parent 0b04b1f commit c10a63c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ jobs:

- name: Wait for NLTK data to be downloaded
run: |
while [ ! -f /usr/local/share/nltk_data/tokenizers/punkt/english.pickle ] || [ ! -f /usr/local/share/nltk_data/taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle ]; do
count=0
while [ ! -f /home/runner/nltk_data/tokenizers/punkt/english.pickle ] || [ ! -f /home/runner/nltk_data/taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle ]; do
echo "Waiting for NLTK data to be downloaded..."
sleep 10
count=$((count+10))
if [ $count -gt 60 ]; then
echo "NLTK data download timeout exceeded!"
exit 1
fi
done
- name: Run unit tests
Expand Down

0 comments on commit c10a63c

Please sign in to comment.