summaryrefslogtreecommitdiff
path: root/.github/workflows/coverage.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/coverage.yml')
-rw-r--r--.github/workflows/coverage.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
new file mode 100644
index 0000000000..3817ee9e5c
--- /dev/null
+++ b/.github/workflows/coverage.yml
@@ -0,0 +1,34 @@
+name: coverage
+
+on:
+ workflow_call:
+
+jobs:
+ # Upload coverage reports to codecov once as a single bundle
+ upload:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
+ - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
+ with:
+ python-version: '3.11'
+ cache: 'pip'
+
+ - name: Install python dependencies
+ run: pip install -r .github/workflows/requirements/coverage/requirements.txt
+
+ - name: Download coverage artifact files
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
+ with:
+ pattern: coverage-*
+ path: coverage
+ merge-multiple: true
+
+ - run: ls -la coverage
+ - run: coverage combine -a coverage/.coverage*
+ - run: coverage xml
+
+ - name: "Upload coverage report to CodeCov"
+ uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
+ with:
+ verbose: true