Skip to content

Commit ffd075b

Browse files
committed
use poerty run inside builds
1 parent 57c4419 commit ffd075b

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/npm-test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
uses: actions/setup-python@v2
2929
with:
3030
python-version: ${{ matrix.python-version }}
31-
- name: install dependencies
32-
run: |
33-
python -m pip install --upgrade pip setuptools
34-
pip install poetry
35-
poetry install
31+
- name: Install and configure Poetry
32+
uses: snok/install-poetry@v1
33+
with:
34+
virtualenvs-create: true
35+
virtualenvs-in-project: true # Keeps virtualenv inside project directory
36+
- name: Install dependencies
37+
run: poetry install --no-interaction
3638
- run: bash docs/build_external.sh
37-
- run: properdocs build
39+
- run: poetry run properdocs build

.github/workflows/publish-docs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ jobs:
2020
uses: actions/setup-python@v2
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: install dependencies
24-
run: |
25-
python -m pip install --upgrade pip setuptools
26-
pip install poetry
27-
poetry install
23+
- name: Install and configure Poetry
24+
uses: snok/install-poetry@v1
25+
with:
26+
virtualenvs-create: true
27+
virtualenvs-in-project: true # Keeps virtualenv inside project directory
28+
- name: Install dependencies
29+
run: poetry install --no-interaction
2830
- run: bash docs/build_external.sh
29-
- run: properdocs build
31+
- run: poetry run properdocs build
3032
- name: Deploy
3133
uses: peaceiris/actions-gh-pages@v3
3234
with:

docs/build_external.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ else
2626
fi
2727

2828
# now build the reference python module API files
29-
markdown_refdocs \
29+
poetry run markdown_refdocs \
3030
docs/_pori_python/pori_python/graphkb \
3131
docs/_pori_python/pori_python/ipr \
3232
-o docs/developer_reference \
3333
--link
3434

3535
# build the spec tables
3636
mkdir -p docs/ipr/includes
37-
python docs/ipr_spec_tables.py
37+
poetry run python docs/ipr_spec_tables.py

0 commit comments

Comments
 (0)