Skip to content

Commit

Permalink
ci: update release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Jul 8, 2023
1 parent 0438e68 commit b7e6063
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,17 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.6
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6
- name: Cache python environment
id: cache-env
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-testing-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install poetry
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
pip install poetry==1.1.5
- name: Setup poetry environment
id: setup-poetry-env
run: |
poetry env use $(which python)
echo "::set-output name=poetry-env::$(poetry env info --path)"
- name: Cache poetry environment
id: cache-poetry
uses: actions/cache@v2
with:
path: ${{ steps.setup-poetry-env.outputs.poetry-env }}
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
cache: poetry
- name: Install dependencies
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
poetry install
- name: Sanity check (run tests)
run: poetry install
- name: Confidence check (run tests)
run: |
poetry run pytest
- name: Build package
Expand Down

0 comments on commit b7e6063

Please sign in to comment.