Skip to content

Commit 56809b2

Browse files
committed
updated github actions
1 parent 906eda6 commit 56809b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/python-app.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4-
name: Python application
4+
name: Spam Detection Testing
55

66
on:
77
push:
@@ -14,7 +14,6 @@ permissions:
1414

1515
jobs:
1616
build:
17-
1817
runs-on: ubuntu-latest
1918

2019
steps:
@@ -28,11 +27,13 @@ jobs:
2827
python -m pip install --upgrade pip
2928
pip install flake8 pytest
3029
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Download NLTK Data
31+
run: |
32+
python -m nltk.downloader stopwords
33+
python -m nltk.downloader wordnet
3134
- name: Lint with flake8
3235
run: |
33-
# stop the build if there are Python syntax errors or undefined names
3436
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3637
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3738
- name: Test with pytest
3839
run: |

0 commit comments

Comments
 (0)