Skip to content

Commit 97a8cd7

Browse files
committed
words_n_fun (update): added a build action to test a local development environment
1 parent 9cfaecd commit 97a8cd7

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/wnf_build_tests.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,24 @@ jobs:
8080
flake8 . --count --exit-zero --max-complexity=10 --ignore=E501 --statistics
8181
- name: Test WNF
8282
run: nosetests -c nose_setup_coverage.cfg tests
83+
84+
build-local:
85+
strategy:
86+
matrix:
87+
python-version: ["3.7", "3.8"]
88+
os: [ubuntu-latest, windows-latest]
89+
runs-on: ${{ matrix.os }}
90+
91+
steps:
92+
- uses: actions/checkout@v3
93+
- name: Set up Python ${{ matrix.python-version }}
94+
uses: actions/setup-python@v3
95+
with:
96+
python-version: ${{ matrix.python-version }}
97+
- name: Install package & dependencies
98+
run: |
99+
python -m pip install --upgrade pip
100+
pip install -r requirements.txt
101+
python setup.py develop
102+
- name: Test WNF
103+
run: nosetests -c nose_setup_coverage.cfg tests

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ coverage==5.3
2323
markupsafe==2.0.1 # BUG FIX -> https://github.com/aws/aws-sam-cli/issues/3661
2424
Cython==0.29.24
2525
spacy==3.2.4
26-
# The following line downloads a spacy model. It can be uncommented to use the lemmatizer, but you'll need an internet access to download it.
27-
# https://github.com/explosion/spacy-models/releases/download/fr_core_news_sm-3.2.0/fr_core_news_sm-3.2.0-py3-none-any.whl
26+
# The following line downloads a spacy model. It can be commented if you don't have an internet access to download it, but lemmatizer features won't work.
27+
https://github.com/explosion/spacy-models/releases/download/fr_core_news_sm-3.2.0/fr_core_news_sm-3.2.0-py3-none-any.whl

0 commit comments

Comments
 (0)