Skip to content

Commit

Permalink
Merge branch 'master' into fix-cwl-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault authored Nov 20, 2024
2 parents 90af73c + 7847dce commit 07f5dc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ jobs:
env | sort
- name: Run Tests
run: make stop ${{ matrix.test-case }}

- name: Upload test results to Codecov
if: ${{ !cancelled() && success() && matrix.test-case == 'test-coverage-only' }}
uses: codecov/test-results-action@v1
with:
files: ./junit.xml,!./cache
flags: ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage report
uses: codecov/codecov-action@v2
if: ${{ success() && matrix.test-case == 'test-coverage-only' }}
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ test-docker: docker-test ## alias to 'docker-test' execution smoke test of bu
.PHONY: test-coverage-only
test-coverage-only: mkdir-reports ## run all tests using coverage analysis
@echo "Running coverage analysis..."
@bash -c '$(CONDA_CMD) coverage run --rcfile="$(APP_ROOT)/setup.cfg" "$$(which pytest)" "$(APP_ROOT)/tests" || true'
@bash -c '$(CONDA_CMD) coverage run --rcfile="$(APP_ROOT)/setup.cfg" \
"$$(which pytest)" "$(APP_ROOT)/tests" --junitxml="$(REPORTS_DIR)/coverage-junit.xml" || true'
@bash -c '$(CONDA_CMD) coverage xml --rcfile="$(APP_ROOT)/setup.cfg" -i -o "$(REPORTS_DIR)/coverage.xml"'
@bash -c '$(CONDA_CMD) coverage report --rcfile="$(APP_ROOT)/setup.cfg" -i -m'
@bash -c '$(CONDA_CMD) coverage html --rcfile="$(APP_ROOT)/setup.cfg" -d "$(REPORTS_DIR)/coverage"'
Expand Down

0 comments on commit 07f5dc5

Please sign in to comment.