Skip to content

Merge pull request #6 from quantumlib/ci_workflows #11

Merge pull request #6 from quantumlib/ci_workflows

Merge pull request #6 from quantumlib/ci_workflows #11

Workflow file for this run

name: Pre-release TypedUnits
on:
push:
branches:
- main
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build auditwheel patchelf
- name: Build package
env:
TypedUnits_RELEASE_VERSION: ${{ "$(python _version.py).dev$(date '+%Y%m%d%H%M%S')" }}

Check failure on line 32 in .github/workflows/prerelease.yml

View workflow run for this annotation

GitHub Actions / Pre-release TypedUnits

Invalid workflow file

The workflow is not valid. .github/workflows/prerelease.yml (Line: 32, Col: 37): Unexpected symbol: '"$'. Located at position 1 within expression: "$(python _version.py).dev$(date '+%Y%m%d%H%M%S')"
run: python -m build
- name: Repair Wheel
run: |
auditwheel repair --plat manylinux2014_x86_64 dist/*.whl
rm dist/*.whl
mv wheelhouse/* dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}