From 32ca5b0d34fd3aafe98c0e19250f51d75e04154f Mon Sep 17 00:00:00 2001 From: WeberJulian Date: Mon, 27 Jun 2022 18:35:37 +0200 Subject: [PATCH] Roll back some changes --- .github/workflows/pypi-release.yml | 31 +++++++++++------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 20497055..314dbb13 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -1,4 +1,4 @@ -name: Publish Python distributions to PyPI +name: Publish Python 🐍 distributions 📦 to PyPI on: pull_request: release: @@ -10,13 +10,16 @@ defaults: jobs: build-sdist: runs-on: ubuntu-20.04 - steps: #Add back version test + steps: - uses: actions/checkout@v2 - name: Verify tag matches version run: | set -ex version=$(cat TTS/VERSION) tag="${GITHUB_REF/refs\/tags\/}" + if [[ "v$version" != "v$version" ]]; then + exit 1 + fi - uses: actions/setup-python@v2 with: python-version: 3.8 @@ -34,25 +37,25 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install pip requirements - run: | python -m pip install -U pip setuptools wheel build + # - name: Build manylinux Python wheels + # uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 + # with: + # python-versions: 'cp37-cp37m' - run: python -m pip install -r requirements.txt - - name: Build manylinux wheel - run: python setup.py bdist_wheel --plat-name=manylinux1_x86_64 - - name: Install manylinux wheel - run: | python -m pip install dist/*-manylinux*.whl - - name: Upload manylinux wheel - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v2 with: name: wheel-${{ matrix.python-version }} path: dist/*-manylinux*.whl @@ -70,17 +73,5 @@ jobs: with: name: "wheel-3.7" path: "dist/" - - uses: actions/download-artifact@v2 - with: - name: "wheel-3.8" - path: "dist/" - - uses: actions/download-artifact@v2 - with: - name: "wheel-3.9" - path: "dist/" - - uses: actions/download-artifact@v2 - with: - name: "wheel-3.10" - path: "dist/" - run: | ls -lh dist/