Update eko to 0.14 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy wheel on PyPI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
name: π¦ PyPI π | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# tags needed for dynamic versioning | |
fetch-depth: 0 | |
- name: Set up Python π | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-path: ~/.virtualenvs | |
installer-parallel: true | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: ~/.virtualenvs | |
key: ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-poetry-${{ hashFiles('poetry.lock') }} | |
- name: Install version management tool | |
run: | | |
# same poetry env | |
PIP="$(head -n1 $(which poetry) | cut -c 3-) -m pip" | |
${PIP} install poetry-dynamic-versioning | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root ${{ inputs.poetry-extras }} | |
working-directory: package | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Install project | |
run: poetry install --no-interaction | |
working-directory: package | |
- name: Package the distribution | |
run: | | |
# package the pure python wheel | |
poetry build | |
working-directory: package | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_TOKEN }} | |
packages_dir: package/dist/ |