Skip to content

Commit

Permalink
fix(GithubActions): fix checkout command for scm version
Browse files Browse the repository at this point in the history
test(Actions): entrypoint tests


hotfix(Actions): wrong command


hotfix(CI): fix release to PyPI action
  • Loading branch information
FelipeMartins96 committed Oct 27, 2021
1 parent b8e5c8b commit b413932
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -18,4 +19,4 @@ rm -rf dist/
mv -v wheelhouse/ dist/

echo "setup sdist"
/opt/python/pp37-pypy37_pp73/bin/python setup.py sdist
/opt/python/pp37-pypy37_pp73/bin/python -m build --sdist --outdir dist/
2 changes: 1 addition & 1 deletion .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b413932

Please sign in to comment.