Skip to content

Commit

Permalink
Switch actions to pipx-installing poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Dec 8, 2023
1 parent 50134ee commit 8619587
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,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
run: pipx install poetry

- name: Install dependencies.
run: poetry install -E docs
Expand All @@ -31,5 +31,3 @@ jobs:
make gendoc
([ ! -f docs/about.md ] && cp src/docs/about.md docs/) || true
make mkd-gh-deploy
...
5 changes: 2 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
# https://github.com/snok/install-poetry#workflows-and-tips
---
name: Build and test {{cookiecutter.__project_slug}}

Expand All @@ -19,13 +18,13 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python ${{ "{{" }} matrix.python-version {{ "}}" }}
- name: Set up Python
uses: actions/setup-python@v4
with:
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
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 8619587

Please sign in to comment.