Skip to content

Commit 8f7f477

Browse files
committed
sync changes between docs publishing Action and main PR Action
1 parent a205d5b commit 8f7f477

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

.github/workflows/build-publish-documentation.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ on:
77
- main
88

99
jobs:
10-
build-docs:
10+
github-pages:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
python-version: [ "3.9" ]
15-
github-pages:
16-
runs-on: ubuntu-latest
1715

1816
permissions:
1917
contents: write

.github/workflows/main.yaml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,30 @@ jobs:
2323
# check-out repo and set-up python
2424
#----------------------------------------------
2525
- name: Check out repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4.2.2
27+
with:
28+
fetch-depth: 0
2729

2830
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5.6.0
32+
id: setup-python
3033
with:
3134
python-version: ${{ matrix.python-version }}
35+
cache: 'poetry'
3236

3337
#----------------------------------------------
34-
# install & configure poetry
38+
# install poetry
3539
#----------------------------------------------
3640
- name: Install Poetry
37-
uses: snok/install-poetry@v1.3
38-
with:
39-
virtualenvs-create: true
40-
virtualenvs-in-project: true
41-
42-
#----------------------------------------------
43-
# load cached venv if cache exists
44-
#----------------------------------------------
45-
- name: Load cached venv
46-
id: cached-poetry-dependencies
47-
uses: actions/cache@v3
48-
with:
49-
path: .venv
50-
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
41+
run: |
42+
pipx install poetry
43+
pipx inject poetry poetry-dynamic-versioning
5144
5245
#----------------------------------------------
53-
# install dependencies if cache does not exist
46+
# install dependencies
5447
#----------------------------------------------
5548
- name: Install dependencies
56-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
57-
run: poetry install --no-interaction --no-root
49+
run: poetry install --no-interaction --no-root --with docs --all-extras
5850

5951
#----------------------------------------------
6052
# run test suite

0 commit comments

Comments
 (0)