Skip to content

Commit

Permalink
Fix codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 23, 2024
1 parent e0ca356 commit 320e611
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Run tests

on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

jobs:
test:
Expand Down Expand Up @@ -90,7 +93,12 @@ jobs:
export ISPYB_CREDENTIALS="./conf/config.cfg"
PYTHONDEVMODE=1 pytest tests -ra --cov=ispyb --cov-report=xml --cov-branch
- name: Publish coverage stats
run: bash <(curl -s https://codecov.io/bash) -n "Python ${{ matrix.python-version }}"
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.python-version }}
files: coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: true
timeout-minutes: 2
2 changes: 2 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
needs:
- build
- static
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

get-env-vars:
name: Get environment variables
Expand Down

0 comments on commit 320e611

Please sign in to comment.