diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d21386898..f86c99fa8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -13,27 +13,27 @@ jobs: coverage: runs-on: ubuntu-latest - env: - FOO: BAR - # KEYCLOAK_CLIENT_ID: ${{ secrets.KEYCLOAK_CLIENT_ID }} - # KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_CLIENT_SECRET }} steps: - uses: actions/checkout@v4 - name: Set up Python 3.7 uses: actions/setup-python@v4 with: python-version: 3.7 + - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install -U . pip install -r requirements-test.txt if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Generate coverage run: | pytest --cov=siibra --cov-report=xml + - name: Upload coverage report to codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) + token: ${{ secrets.CODECOV_TOKEN }}