Skip to content

Commit

Permalink
cache improvements, enable gensim tests, more verbose test output for…
Browse files Browse the repository at this point in the history
… skipped and failed tests (#2756)
  • Loading branch information
purificant committed Jul 26, 2021
1 parent 0983062 commit 6411fab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Expand Up @@ -12,15 +12,17 @@ jobs:

- name: Cache nltk data
uses: actions/cache@v2
id: restore-cache
with:
path: ~/nltk_data
key: nltk_data

- name: Download nltk data packages
- name: Download nltk data packages on cache miss
run: |
pip install regex # dependencies needed to download nltk data
python -c "import nltk; nltk.download('all')"
shell: bash
if: steps.restore-cache.outputs.cache-hit != 'true'

test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
Expand All @@ -42,12 +44,14 @@ jobs:

- name: Cache dependencies
uses: actions/cache@v2
id: restore-cache
with:
path: ${{ env.pythonLocation }}
key: python-dependencies-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements-ci.txt') }}-${{ env.pythonLocation }}

- name: Install dependencies
- name: Install dependencies on cache miss
run: pip install --upgrade --requirement requirements-ci.txt
if: steps.restore-cache.outputs.cache-hit != 'true'

- name: Use cached nltk data
uses: actions/cache@v2
Expand All @@ -56,5 +60,5 @@ jobs:
key: nltk_data

- name: Run pytest
run: pytest --numprocesses auto nltk/test
run: pytest --numprocesses auto -rsx nltk/test
shell: bash
1 change: 1 addition & 0 deletions requirements-ci.txt
@@ -1,3 +1,4 @@
gensim<4.0.0
matplotlib
pytest
pytest-mock
Expand Down

0 comments on commit 6411fab

Please sign in to comment.