From ffdbf735a41a25282693fa1a7ac739a7a5a035a6 Mon Sep 17 00:00:00 2001 From: matteocao <38946719+matteocao@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:11:43 +0100 Subject: [PATCH] add pytest --- .github/workflows/python-package.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ecfa6e9..8db0316 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 build twine + python -m pip install flake8 build twine pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -35,6 +35,8 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Unit tests + run: pytest . - name: Build run: | python -m build