Skip to content

Loosen Python version requirement #264

Loosen Python version requirement

Loosen Python version requirement #264

Workflow file for this run

name: Wheel Build
on:
push:
pull_request:
jobs:
wheel-build:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-deps
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-deps.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run wheel build
run: poetry build
- name: Upload wheel data if the Git tag is set
if: ${{ contains(github.ref, '/tags/') }}
run: |
poetry config pypi-token.pypi ${{ secrets.TWINE_PASSWORD_QULACS_VISUALIZER }}
poetry publish