Skip to content

Commit

Permalink
feature(package): Github pages action ineffective, trying another.
Browse files Browse the repository at this point in the history
Added more folders to dockerignore for improved caching.
  • Loading branch information
acederberg committed Aug 20, 2024
1 parent 4befac6 commit becb4ea
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 13 deletions.
14 changes: 11 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
.data
.git
.github
.mypy_cache
.pytest_cache
.ruff_cache
.venv
.venv-local
configs
plugins
scripts
logs
.venv-local
__pycache__
.data
.venv

38 changes: 28 additions & 10 deletions .github/workflows/commit_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,16 @@ jobs:
&& poetry run coverage run -m pytest --count 1'
continue-on-error: true

# --------------------------------------------------------------------- #
# NOTE: ``master`` only.
# if: |
# contains('
# refs/heads/master
# refs/heads/development
# ', github.ref)
#
- name: Create Coverage Report.
# if: github.ref == 'refs/heads/master'
id: coverage-report
run: |
docker compose \
--file docker/compose.ci.yaml \
Expand All @@ -207,28 +215,38 @@ jobs:
&& poetry run coverage html --directory ./coverage-report'
continue-on-error: true

# --------------------------------------------------------------------- #
# NOTE: ``master`` only.

- name: Copy Coverage Report To Host.
# if: github.ref == 'refs/heads/master'
id: coverage-report-to-host
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
- name: Configure Pages
uses: actions/configure-pages@v5

- name: Upload Coverage Report.
id: coverage-report-upload
uses: actions/upload-pages-artifact@v3
with:
branch: $GITHUB_BRANCH
folder: coverage-report # The folder the action should deploy.
path: './coverage-report'

- name: Deploy to GitHub Pages
id: coverage-report-pages
uses: actions/deploy-pages@v4

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


# coverage:
# name: PyTest
# runs-on: ubuntu-latest
# steps:



0 comments on commit becb4ea

Please sign in to comment.