From 77fa5b0922c214ae0b16d5582aa20af9c75e2f31 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Aug 2024 16:46:09 +0100 Subject: Update dev-tests.yml --- .github/workflows/dev-tests.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows/dev-tests.yml') diff --git a/.github/workflows/dev-tests.yml b/.github/workflows/dev-tests.yml index d66f1c6..b64032e 100644 --- a/.github/workflows/dev-tests.yml +++ b/.github/workflows/dev-tests.yml @@ -10,6 +10,7 @@ on: jobs: validate-and-test: + environment: testing name: Validate Terraform and Run Tests runs-on: ubuntu-latest steps: -- cgit v1.2.3 From 93a56e57daee737ae87be8f3174ad69ca16f7392 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Aug 2024 16:49:30 +0100 Subject: ci: update dev-tests.yml --- .github/workflows/dev-tests.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.github/workflows/dev-tests.yml') diff --git a/.github/workflows/dev-tests.yml b/.github/workflows/dev-tests.yml index b64032e..443e03b 100644 --- a/.github/workflows/dev-tests.yml +++ b/.github/workflows/dev-tests.yml @@ -8,6 +8,9 @@ on: branches: - development +env: + PYTHONPATH: ${{ github.workspace }} + jobs: validate-and-test: environment: testing -- cgit v1.2.3 From 221ce41774082e6a3ffbbb36c702a1a60eb59bd4 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 22 Aug 2024 12:20:51 +0100 Subject: ci: simplify pytest output & add coverage report --- .github/workflows/dev-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/dev-tests.yml') diff --git a/.github/workflows/dev-tests.yml b/.github/workflows/dev-tests.yml index 443e03b..ec169b4 100644 --- a/.github/workflows/dev-tests.yml +++ b/.github/workflows/dev-tests.yml @@ -39,11 +39,11 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install pytest pytest-testdox + pip install pytest pytest-testdox pytest-cov pip install -r requirements.txt - name: Run pytest - run: pytest tests/ -vvrP --testdox + run: pytest -v --cov=src --cov-report=xml --cov-report=term-missing continue-on-error: true id: pytest -- cgit v1.2.3 From 46671be246a19bc9d157a00e5ba00e0132ce27cd Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 22 Aug 2024 12:38:00 +0100 Subject: ci: upload coverage report as artifact --- .github/workflows/dev-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.github/workflows/dev-tests.yml') diff --git a/.github/workflows/dev-tests.yml b/.github/workflows/dev-tests.yml index ec169b4..e183f36 100644 --- a/.github/workflows/dev-tests.yml +++ b/.github/workflows/dev-tests.yml @@ -50,3 +50,10 @@ jobs: - name: Check on failures if: steps.pytest.outcome == 'failure' run: exit 1 + + - name: Upload Coverage Report' + uses: actions/upload-artifact@v4 + with: + name: cov-report + path: coverage.xml + retention-days: 7 -- cgit v1.2.3