From 1e1bc48a41409255eb7a3c882c715e68be27e76c Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen Date: Mon, 30 Aug 2021 18:24:51 +0200 Subject: [PATCH] Run unit tests in CI Add generated coverage report to `.gitignore` when running `pytest` with coverage locally. --- .github/workflows/dic2owl_ci.yml | 4 ++-- .gitignore | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dic2owl_ci.yml b/.github/workflows/dic2owl_ci.yml index 0e39b03..f2222c5 100644 --- a/.github/workflows/dic2owl_ci.yml +++ b/.github/workflows/dic2owl_ci.yml @@ -41,5 +41,5 @@ jobs: - name: Lint with MyPy run: mypy --ignore-missing-imports --scripts-are-modules dic2owl/dic2owl - # - name: Run unittests - # run: pytest --cov dic2owl/dic2owl tests/ + - name: Run unit tests with PyTest + run: pytest --cov dic2owl tests/ diff --git a/.gitignore b/.gitignore index 01483d3..5866066 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__ *.pyc .mypy* +.coverage *.dic *.cif