Skip to content

Commit 38d176d

Browse files
committed
Update GitHub Actions workflows
1 parent 2ea6ae7 commit 38d176d

File tree

4 files changed

+1501
-1192
lines changed

4 files changed

+1501
-1192
lines changed

.github/workflows/release.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@ jobs:
66
release:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v2
9+
- uses: actions/checkout@v4
10+
- run: pipx install poetry
11+
- uses: actions/setup-python@v5
1112
with:
12-
python-version: '3.10'
13-
- run: pip install poetry
13+
cache: poetry
14+
python-version: 3.11
1415
- run: poetry install
16+
- uses: tschm/token-mint-action@v1.0.3
17+
id: mint
1518
- run: poetry publish --build -u __token__ -p $PYPI_TOKEN
1619
env:
17-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
20+
PYPI_TOKEN: ${{ steps.mint.outputs.api-token }}
1821
- run: poetry run poe document
1922
- uses: peaceiris/actions-gh-pages@v3
2023
with:
21-
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
github_token: ${{ github.token }}
2225
publish_dir: ./documentation/module/_build/html
2326
publish_branch: documentation
2427
force_orphan: true

.github/workflows/test.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ jobs:
1515
- test
1616
- coverage
1717
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-python@v2
18+
- run: pipx install poetry
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-python@v5
2021
with:
21-
python-version: '3.10'
22-
- uses: actions/cache@v2
23-
id: cache
24-
with:
25-
path: ~/.cache/pypoetry/virtualenvs
26-
key: ${{ hashFiles('poetry.lock') }}
27-
- run: pip install poetry
22+
cache: poetry
23+
python-version: 3.11
2824
- run: poetry install
29-
if: steps.cache.outputs.cache-hit != 'true'
3025
- run: poetry run poe ${{ matrix.action }}

0 commit comments

Comments
 (0)