Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Mar 2, 2024
1 parent 2ea6ae7 commit 4ed7301
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
cache: poetry
python-version: '3.10'
- run: pip install poetry
- run: poetry install
- uses: tschm/[email protected]
id: mint
- run: poetry publish --build -u __token__ -p $PYPI_TOKEN
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN: ${{ steps.mint.outputs.api-token }}
- run: poetry run poe document
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ github.token }}
publish_dir: ./documentation/module/_build/html
publish_branch: documentation
force_orphan: true
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
- test
- coverage
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pipx install poetry
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: poetry
python-version: '3.10'
- uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ hashFiles('poetry.lock') }}
- run: pip install poetry
- run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- run: poetry run poe ${{ matrix.action }}

0 comments on commit 4ed7301

Please sign in to comment.