aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2023-04-22 22:53:18 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2023-04-22 22:53:18 -0400
commite39bb9c73c395738daed57ae689833320d757b61 (patch)
tree277cccc348269a6d73884c3d7f576655a7213c14
parentAdd a small set of basic sanity integration tests (diff)
downloadpoetry-plugin-taskipy2-e39bb9c73c395738daed57ae689833320d757b61.zip
Add test job to CI
-rw-r--r--.github/workflows/ci.yaml (renamed from .github/workflows/lint.yaml)7
-rw-r--r--.gitignore1
-rw-r--r--pyproject.toml1
3 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/ci.yaml
index 18b5bff..24d39cd 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/ci.yaml
@@ -1,9 +1,9 @@
-name: Lint
+name: CI
on: [push, pull_request]
jobs:
- run-linters:
+ lint-and-test:
name: Run the project linters
runs-on: ubuntu-latest
steps:
@@ -24,3 +24,6 @@ jobs:
- name: Run linters
run: poetry run task lint
+
+ - name: Run tests
+ run: poetry run task test
diff --git a/.gitignore b/.gitignore
index 88d7e13..1b8e35e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ __pycache__
.mypy_cache
.pytest_cache
dist
+.coverage
diff --git a/pyproject.toml b/pyproject.toml
index 2a5f360..c344c97 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -25,6 +25,7 @@ autoflake = "^2.0.2"
mypy = "^1.2.0"
[tool.taskipy.tasks]
+test = "pytest --cov=poetry_plugin_taskipy --cov-report=term-missing {tests_dir}"
lint = """
task lint_format \
&& task lint_analyze \