aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-08-30 21:24:42 -0400
committerBobby <[email protected]>2022-08-30 21:24:42 -0400
commit96dea8ac5d271653a8e295ba259677ddbde94ba6 (patch)
treedec99db48e227578cbcc0c4803e6739d6357814f /.github
parent033ef02238c41b2276a49f8a687f9b6b0f2621c5 (diff)
downloadedify-96dea8ac5d271653a8e295ba259677ddbde94ba6.tar.xz
edify-96dea8ac5d271653a8e295ba259677ddbde94ba6.zip
Added Coverage CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/coverage.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
new file mode 100644
index 0000000..8e0d213
--- /dev/null
+++ b/.github/workflows/coverage.yml
@@ -0,0 +1,43 @@
+name: Upload Coverage Reports
+on: [push, pull_request]
+jobs:
+ build:
+ name: ${{ matrix.name }}
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 30
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - name: 'build'
+ python: '3.10'
+ toxpython: 'python3.10'
+ python_arch: 'x64'
+ tox_env: 'py310'
+ os: 'ubuntu-latest'
+ - name: 'codecov'
+ python: '3.10'
+ toxpython: 'python3.10'
+ python_arch: 'x64'
+ tox_env: 'codecov'
+ os: 'ubuntu-latest'
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-python@v3
+ with:
+ python-version: ${{ matrix.python }}
+ architecture: ${{ matrix.python_arch }}
+ - name: install dependencies
+ run: |
+ python -mpip install --progress-bar=off -r ci/requirements.txt
+ virtualenv --version
+ pip --version
+ tox --version
+ pip list --format=freeze
+ - name: test
+ env:
+ TOXPYTHON: '${{ matrix.toxpython }}'
+ run: >
+ tox -e ${{ matrix.tox_env }} -v