aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-06-30 15:19:50 +0530
committernatsuoto <[email protected]>2026-06-30 15:19:50 +0530
commit4fbee461391bc122c83b3fa97887a62d69faa2d8 (patch)
tree8ba061e8a2d8427a51f8650b66b7c644464f8672
parentf82126cd8fa2b9ae30db6587ec69b090e240c37e (diff)
downloadedify-4fbee461391bc122c83b3fa97887a62d69faa2d8.tar.xz
edify-4fbee461391bc122c83b3fa97887a62d69faa2d8.zip
fix(ci): rewrite coverage.yml on uv + codecov-action (closes #260)
-rw-r--r--.github/workflows/coverage.yml34
1 files changed, 16 insertions, 18 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 79c7a5f..80cf274 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -5,21 +5,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v5
- - uses: actions/setup-python@v5
- with:
- python-version: 3.11
- - name: install dependencies
- run: |
- python -m pip install --upgrade pip
- python -mpip install --progress-bar=off -r ci/requirements.txt
- virtualenv --version
- pip --version
- tox --version
- pip list --format=freeze
- - name: upload coverage reports
- run: |
- tox -e clean -v
- tox -e py311 -v
- tox -e report -v
- tox -e codecov -v
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
+ with:
+ fetch-depth: 0
+ - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39
+ with:
+ python-version: '3.11'
+ - name: install dependencies
+ run: uv sync --frozen
+ - name: run tests with coverage
+ run: uv run pytest --cov=edify --cov-report=xml
+ - name: upload coverage to codecov
+ uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./coverage.xml
+ fail_ci_if_error: true \ No newline at end of file