From 9b7759b513c0cf8db9259d58c79d57fa8fbe282e Mon Sep 17 00:00:00 2001 From: femtotrader Date: Mon, 24 Jul 2023 12:23:14 +0200 Subject: [PATCH] CI --- .github/workflows/pullrequestchecks.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pullrequestchecks.yml b/.github/workflows/pullrequestchecks.yml index abbff4e..2fbd72a 100644 --- a/.github/workflows/pullrequestchecks.yml +++ b/.github/workflows/pullrequestchecks.yml @@ -29,4 +29,17 @@ jobs: path: ~/.virtualenvs key: poetry-$ restore-keys: | - poetry-$ \ No newline at end of file + poetry-$ + + - name: Install Dependencies using Poetry + run: poetry install + if: steps.cache.outputs.cache-hit != 'true' + + - name: Run pytest + run: PYTHONPATH=src/ poetry run python -m pytest -v --cov=src/ tests/ + + - name: Run Coverage + run: PYTHONPATH=src/ poetry run python -m coverage report -m; + + - name: Generate XML Report + run: PYTHONPATH=src/ poetry run python -m coverage xml