Skip to content

Commit

Permalink
feature(package): Added coverage report publishing.
Browse files Browse the repository at this point in the history
Will make only for `master` once functioning.
  • Loading branch information
acederberg committed Aug 20, 2024
1 parent f1da375 commit 48c7611
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/commit_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,36 @@ jobs:
continue-on-error: true

- name: Create Coverage Report.
# if: github.ref == 'refs/heads/master'
run: |
docker compose \
--file docker/compose.ci.yaml \
exec server \
bash -c ' \
source ~/app/.venv/bin/activate \
&& poetry run coverage html'
&& poetry run coverage html --directory ./coverage-report'
continue-on-error: true

- name: Stop Compose Project.
if: always()
run: docker compose --file docker/compose.ci.yaml down

# --------------------------------------------------------------------- #
# Master only.

- name: Copy Coverage Report To Host.
# if: github.ref == 'refs/heads/master'
run: |
docker compose \
--file docker/compose.ci.yaml \
cp server:/home/captura/app/coverage-report ./coverage-report
- name: Put Coverage Report On GitHub Pages.
# if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: $GITHUB_BRANCH
folder: coverage-report # The folder the action should deploy.



0 comments on commit 48c7611

Please sign in to comment.