Skip to content

Commit

Permalink
build(ci): fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcai committed Jan 31, 2020
1 parent 0f5f16f commit cf8e83d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 197 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -25,7 +25,6 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Test
run: |
pip install pytest
pytest
pipenv run test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ start:
pipenv run ./app.py

test:
pipenv run pytest
pipenv run test

format:
black --exclude "ENV\/|venv\/|venv3.6\/|build/|buck-out/|dist/|_build/|\.eggs/|\.git/|\.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/" .
Expand Down
5 changes: 0 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ verify_ssl = true
test = "python -m unittest discover -s tests -p 'test_*.py'"

[dev-packages]
pytest = "*"
pytest-watch = "*"

[packages]
netaddr = "==0.7.18"
Expand All @@ -22,6 +20,3 @@ aiocontextvars = "*"
hyper = "*"
pyjwt = "*"
cryptography = "*"

[requires]
python_version = "3.6"
192 changes: 13 additions & 179 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.

0 comments on commit cf8e83d

Please sign in to comment.