Skip to content

Commit

Permalink
CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Isken committed Mar 7, 2024
1 parent c130b61 commit de5d45b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ on:
permissions:
contents: write
jobs:
deploy:
deploy-docs:
runs-on: ubuntu-latest
needs: build_docs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,20 @@ jobs:
- name: Test with pytest
run: |
pytest -m "not plot"
build_docs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install .[docs]
- run: mkdocs build

0 comments on commit de5d45b

Please sign in to comment.