aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dev-tests.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/dev-tests.yml b/.github/workflows/dev-tests.yml
index d66f1c6..e183f36 100644
--- a/.github/workflows/dev-tests.yml
+++ b/.github/workflows/dev-tests.yml
@@ -8,8 +8,12 @@ on:
branches:
- development
+env:
+ PYTHONPATH: ${{ github.workspace }}
+
jobs:
validate-and-test:
+ environment: testing
name: Validate Terraform and Run Tests
runs-on: ubuntu-latest
steps:
@@ -35,14 +39,21 @@ 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
- 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
git.ajschof.me — hosted by ajschofield — powered by cgit