Skip to content

Commit

Permalink
fix(ci): renable badge deploy and dependence on linter and pytest
Browse files Browse the repository at this point in the history
… for `docs`
  • Loading branch information
spool committed Nov 18, 2023
1 parent f6e51ef commit 06887f3
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ jobs:
run: docker compose down

docs:
# needs: [linter, pytest]
needs: [linter, pytest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# - name: Download coverage svg
# uses: actions/download-artifact@v3
# with:
# name: coverage-badge
# path: ${{ env.COVERAGE_SVG_PATH }}
- name: Download coverage svg
uses: actions/download-artifact@v3
with:
name: coverage-badge
path: ${{ env.COVERAGE_SVG_PATH }}
#
# - name: Set up conda environment
# uses: conda-incubator/setup-miniconda@v2
Expand Down Expand Up @@ -125,28 +125,11 @@ jobs:
docker compose up --detach
# docker cp $(docker compose ps -q docs):/app/_site/ .
docker cp $(docker compose ps -q docs):/usr/local/apache2/htdocs/ ${{ env.GH_PAGE_PATH }}
# cp ${{ env.jupyter_id }}:app/docs/assets/coverage.svg ${{ env.GH_PAGE_PATH }}${{ env.COVERAGE_SVG_PATH }}
cp ${{ env.jupyter_id }}:app/docs/assets/coverage.svg ${{ env.GH_PAGE_PATH }}${{ env.COVERAGE_SVG_PATH }}
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.GH_PAGE_PATH }}
keep_files: false

# - name: Apply mkdocs cache
# uses: actions/cache@v3
# with:
# key: mkdocs-material-${{ env.cache_id }}
# path: .cache
# restore-keys: |
# mkdocs-material-
#
# - name: Install doc dependencies via poetry
# run: |
# pip install poetry
# poetry install --with docs
#
# - name: Build docs with gh-deploy --force
# run: |
# poetry run mkdocs gh-deploy --force

0 comments on commit 06887f3

Please sign in to comment.