aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-06-20 16:10:07 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-06-20 16:10:07 -0500
commite6d7aeeead256cf98b8fb4947424cf8ad26d0b9a (patch)
treef9958d3aca0b45b40ecb67af188356225eb12016
parentRemove --no-dev from package ci (diff)
downloadconfig-file-e6d7aeeead256cf98b8fb4947424cf8ad26d0b9a.zip
Add test_ci taskipy task
-rw-r--r--.github/workflows/python-package-ci.yml2
-rw-r--r--pyproject.toml5
2 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml
index 8a1432e..6cbfbb1 100644
--- a/.github/workflows/python-package-ci.yml
+++ b/.github/workflows/python-package-ci.yml
@@ -29,7 +29,7 @@ jobs:
- name: Run tests
run: |
- poetry run task test
+ poetry run task test_ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
diff --git a/pyproject.toml b/pyproject.toml
index 28f2acd..bdf9ba3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,8 +19,11 @@ classifiers = [
]
[tool.taskipy.tasks]
-test = "poetry run pytest -v --cov=config_file/ --cov-report term-missing tests/"
+test = "task test_cov -- -v --cov-report term-missing"
+test_cov = "task pytest -- --cov=config_file/"
+test_ci = "task test_cov -- --cov-report=xml"
lint = "poetry run pre-commit run --all"
+pytest = "poetry run pytest tests/"
[tool.poetry.dependencies]
python = "^3.6"