Skip to content

Commit b078105

Browse files
committed
Fix CI test failures by adding matplotlib backend and nltk punkt
- Set the MPLBACKEND environment variable to Agg for non-interactive test environment - Explicitly download nltk punkt tokenizer needed for text visualizers - These changes resolve test failures in the CI pipeline
1 parent a0ed25f commit b078105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ jobs:
3838
run: |
3939
python -m pip install --upgrade pip
4040
pip install -r tests/requirements.txt
41-
python -m nltk.downloader popular
41+
python -m nltk.downloader popular punkt
4242
4343
- name: Run Unit Tests
4444
run: |
4545
make test
46+
env:
47+
MPLBACKEND: Agg
4648
4749
- name: Upload Coverage
4850
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)