From b413932b7b4bbc0fc399f6a979e4cfcc4f56264f Mon Sep 17 00:00:00 2001 From: Felipe Martins Date: Wed, 27 Oct 2021 16:12:50 -0300 Subject: [PATCH] fix(GithubActions): fix checkout command for scm version test(Actions): entrypoint tests hotfix(Actions): wrong command hotfix(CI): fix release to PyPI action --- .github/action/entrypoint.sh | 7 ++++--- .github/workflows/release-pypi.yml | 2 +- .github/workflows/release-testpypi.yml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/action/entrypoint.sh b/.github/action/entrypoint.sh index 1a178d8..b9f5e71 100755 --- a/.github/action/entrypoint.sh +++ b/.github/action/entrypoint.sh @@ -2,11 +2,12 @@ echo "Starting entrypoint.sh" -Build wheels for different python versions +echo "Build wheels for different python versions" for PYBIN in /opt/python/*/bin; do #3.7,3.8,3.9 echo "builind dist for ${PYBIN}" + "${PYBIN}/pip" install pip --upgrade #precisa para buildar "${PYBIN}/pip" install scikit-build #precisa para buildar - "${PYBIN}/python" setup.py bdist_wheel + "${PYBIN}/python" -m build --wheel --outdir dist/ . done echo "auditwheels" @@ -18,4 +19,4 @@ rm -rf dist/ mv -v wheelhouse/ dist/ echo "setup sdist" -/opt/python/pp37-pypy37_pp73/bin/python setup.py sdist \ No newline at end of file +/opt/python/pp37-pypy37_pp73/bin/python -m build --sdist --outdir dist/ \ No newline at end of file diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 96e49ef..40c991b 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -16,13 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: + fetch-depth: 0 ref: ${{ github.event.inputs.tag }} - name: manylinux2010_x86_64 Docker build action uses: ./.github/action/ # Uses an action in the root directory - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release-testpypi.yml b/.github/workflows/release-testpypi.yml index d143d4c..2d8e10d 100644 --- a/.github/workflows/release-testpypi.yml +++ b/.github/workflows/release-testpypi.yml @@ -16,13 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: + fetch-depth: 0 ref: ${{ github.event.inputs.tag }} - name: manylinux2010_x86_64 Docker build action uses: ./.github/action/ # Uses an action in the root directory - name: Publish distribution 📦 to Test PyPI - if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.TEST_PYPI_API_TOKEN }}