Skip to content

Commit

Permalink
Use pipx in actions to install poetry; fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Dec 8, 2023
1 parent 7acaeb4 commit 8480651
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Set up Python 3.
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install Poetry.
uses: snok/install-poetry@v1.3
- name: Install Poetry
run: pipx install poetry

- name: Install dependencies.
run: poetry install -E docs
Expand All @@ -31,12 +31,4 @@ jobs:
touch docs/.nojekyll
make gendoc
([ ! -f docs/about.md ] && cp src/docs/about.md docs/) || true
# make mkd-gh-deploy # does not work for me

- name: Deploy updated gh-pages content
# Pin third party action (v3.9.3)
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
make mkd-gh-deploy
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1.3
run: pipx install poetry

- name: Install dependencies
run: poetry install --no-interaction --no-root
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ jobs:

- name: Install Poetry
run: |
pip install poetry
pipx install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
# uses: snok/[email protected]
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true
# - name: Install dependencies
# run: poetry install --no-interaction
Expand Down

0 comments on commit 8480651

Please sign in to comment.