Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache improvements, enable gensim tests, more verbose test output for skipped and failed tests #2756

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gensim<4.0.0
matplotlib
pytest
pytest-mock
Expand Down