From 7849ce5a5bf11694bbf9fa69c22f01d2db1d3b65 Mon Sep 17 00:00:00 2001 From: Rich FitzJohn Date: Tue, 2 Jan 2024 12:06:22 +0000 Subject: [PATCH] Add ci command --- .gitignore | 1 + pyproject.toml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index f63b9a3..2af2a9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.pyc __pycache__ .coverage* +coverage.xml .idea /dist diff --git a/pyproject.toml b/pyproject.toml index b660849..03e5301 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,14 @@ test = "pytest {args:tests}" test-cov = "coverage run -m pytest {args:tests}" cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hipercow --cov=tests {args}" no-cov = "cov --no-cov {args}" +cov-report-xml = [ + "- coverage combine", + "coverage xml", +] +cov-ci = [ + "test-cov", + "cov-report-xml", +] [[tool.hatch.envs.test.matrix]] python = ["37", "38", "39", "310", "311"]