Skip to content

Commit

Permalink
refactor: migrate to poetry package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Jul 29, 2023
1 parent da8d71a commit 93531a6
Show file tree
Hide file tree
Showing 4 changed files with 1,797 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,27 @@ jobs:
name: "Deploy Docs"
runs-on: ubuntu-latest
concurrency: deploy-docs-${{ github.ref }}
env:
SITE_DESCRIPTION: ${{ github.event.repository.description }}
steps:
- name: "Checkout the repository"
uses: actions/checkout@v3

- name: "Install poetry"
run: pipx install poetry

- name: "Get python version"
id: python
run: echo "version=$(yq .tool.poetry.dependencies.python pyproject.toml)" >> "$GITHUB_OUTPUT"

- name: "Setup Python"
uses: actions/setup-python@v3
with:
python-version: 3.x
cache: ${{ !env.ACT && 'pip' || '' }}
cache-dependency-path: docs/requirements.txt
python-version: ${{ steps.python.outputs.version }}
cache: "poetry"

- name: "Install dependencies"
run: pip install -r docs/requirements.txt
run: poetry install --only docs

- name: "Build & Deploy 🚀"
run: mkdocs gh-deploy --force
run: poetry run mkdocs gh-deploy --force
env:
SITE_DESCRIPTION: ${{ github.event.repository.description }}
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

Loading

0 comments on commit 93531a6

Please sign in to comment.