diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e044b4..c7f2788 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,7 @@ jobs: python -m pip install --upgrade pip python -m pip install pytest pytest-xdist if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -e . - name: Run tests (Parallel) run: | pytest -n auto diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b6ac443..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: python -dist: xenial - -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - -script: python -m unittest test diff --git a/README.md b/README.md index c0acd32..b6194a5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/pr4bh4sh/delayed-assert.svg?branch=master)](https://travis-ci.org/pr4bh4sh/delayed-assert) +[![Tests](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml/badge.svg)](https://github.com/pr4bh4sh/delayed-assert/actions/workflows/tests.yml) [![PyPI version](https://badge.fury.io/py/delayed-assert.svg)](https://badge.fury.io/py/delayed-assert) [![Downloads](https://pepy.tech/badge/delayed-assert)](https://pepy.tech/project/delayed-assert) [![Downloads](https://pepy.tech/badge/delayed-assert/month)](https://pepy.tech/project/delayed-assert) @@ -31,7 +31,7 @@ Few features: ## Uses -See `example_unittest.py` for usage. +See `tests/example_unittest.py` for usage. ### Using assertion library with lambda diff --git a/pytest.ini b/pytest.ini index a35615f..f48043d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,2 @@ [pytest] -python_files = test.py test_*.py *_test.py +python_files = test_*.py *_test.py diff --git a/example_unittest.py b/tests/example_unittest.py similarity index 100% rename from example_unittest.py rename to tests/example_unittest.py diff --git a/test_color_toggle.py b/tests/test_color_toggle.py similarity index 100% rename from test_color_toggle.py rename to tests/test_color_toggle.py diff --git a/test.py b/tests/test_delayed_assert.py similarity index 100% rename from test.py rename to tests/test_delayed_assert.py diff --git a/test_issue_15.py b/tests/test_issue_15.py similarity index 100% rename from test_issue_15.py rename to tests/test_issue_15.py diff --git a/test_issue_33.py b/tests/test_issue_33.py similarity index 100% rename from test_issue_33.py rename to tests/test_issue_33.py