~cnx/palace

c147a303e52096e5df567f9a5608d69acc78b624 — Nguyễn Gia Phong 7 months ago 8f1aea3
Test against manylinux wheels
1 files changed, 10 insertions(+), 4 deletions(-)

M .build.yml
M .build.yml => .build.yml +10 -4
@@ 44,19 44,25 @@ tasks:
      python3 -m pip install auditwheel
      for wheel in palace/dist/palace-*.whl
      do
        python3 -m auditwheel repair --plat=manylinux_2_24_x86_64 \
          --wheel-dir=manylinux $wheel
        python3 -m auditwheel repair --wheel-dir=manylinux $wheel
      done
  - test: |
      python3 -m pip install tox
      python3 -m tox -c palace -e py36,py37,py38,py39 --parallel
      for wheel in manylinux/palace-*.whl
      do
        if [[ $wheel =~ -cp([0-9]+)- ]]
        then
          python3 -m tox -c palace -e py${BASH_REMATCH[1]} --installpkg=$wheel
        fi
      done
  - upload: |
      if [[ $(git tag --points-at HEAD) ]]
      if [[ $(git -C palace tag --points-at HEAD) ]]
      then
        python3 -m pip install twine
        python3 -m twine upload manylinux/palace-*.whl
      fi
environment:
  AUDITWHEEL_PLAT: manylinux_2_24_x86_64
  PIP_PROGRESS_BAR: 'off'
secrets:
  - d5fcfb32-28a9-4a3c-9012-aa68b4b887ff