| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ jobs: | |||
| 22 | 22 | with: | |
| 23 | 23 | fetch-depth: 1000 | |
| 24 | 24 | - name: Set up Python ${{ matrix.python-version }} | |
| 25 | - uses: actions/setup-python@v1 | ||
| 25 | + uses: actions/setup-python@v2 | ||
| 26 | 26 | with: | |
| 27 | 27 | python-version: ${{ matrix.python-version }} | |
| 28 | 28 | - name: Install dependencies | |
@@ -35,9 +35,9 @@ jobs: | |||
| 35 | 35 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| 36 | 36 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
| 37 | 37 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| 38 | - - name: Test with nose | ||
| 38 | + - name: Test | ||
| 39 | 39 | run: | | |
| 40 | - pip install nose | ||
| 40 | + pip install pytest | ||
| 41 | 41 | ulimit -n 48 | |
| 42 | 42 | ulimit -n | |
| 43 | - nosetests -v | ||
| 43 | + pytest -v | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,11 +24,11 @@ clean-files: | |||
| 24 | 24 | clean: clean-files clean-docs | |
| 25 | 25 | ||
| 26 | 26 | test: | |
| 27 | - nosetests | ||
| 27 | + pytest | ||
| 28 | 28 | ||
| 29 | 29 | coverage: | |
| 30 | - nosetests --with-coverage --cover-package=smmap | ||
| 31 | - | ||
| 30 | + pytest --cov smmap --cov-report xml | ||
| 31 | + | ||
| 32 | 32 | build: | |
| 33 | 33 | ./setup.py build | |
| 34 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,6 +47,4 @@ | |||
| 47 | 47 | ], | |
| 48 | 48 | long_description=long_description, | |
| 49 | 49 | long_description_content_type='text/markdown', | |
| 50 | - tests_require=('nose', 'nosexcover'), | ||
| 51 | - test_suite='nose.collector' | ||
| 52 | 50 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,10 +7,10 @@ | |||
| 7 | 7 | envlist = flake8, py36, py37, py38, py39, py310 | |
| 8 | 8 | ||
| 9 | 9 | [testenv] | |
| 10 | - commands = nosetests {posargs:--with-coverage --cover-package=smmap} | ||
| 10 | + commands = {envpython} -m pytest --cov smmap --cov-report xml {posargs} | ||
| 11 | 11 | deps = | |
| 12 | - nose | ||
| 13 | - nosexcover | ||
| 12 | + pytest | ||
| 13 | + pytest-cov | ||
| 14 | 14 | ||
| 15 | 15 | [testenv:flake8] | |
| 16 | 16 | commands = flake8 {posargs} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments