Loosen Python version requirement #264
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: 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 |