diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 628ae7dc7..6cb52ee1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -344,6 +344,15 @@ jobs: python --version 2>&1 | grep "Python 3\.9" bash build/ci-py-build-wheels.sh + - uses: conda-incubator/setup-miniconda@v2.1.1 + with: + python-version: 3.10 + - name: Build and test the wheel + shell: bash -le {0} + run: | + python --version 2>&1 | grep "Python 3\.10" + bash build/ci-py-build-wheels.sh + - uses: actions/upload-artifact@v2 with: name: py-dist-${{matrix.os}}-x64 @@ -419,6 +428,15 @@ jobs: python --version 2>&1 | grep "Python 3\.9" bash build/ci-py-build-wheels.sh + - uses: actions/setup-python@v2.2.2 + with: + python-version: 3.10 + - name: Build and test the wheel + shell: bash + run: | + python --version 2>&1 | grep "Python 3\.10" + bash build/ci-py-build-wheels.sh + - name: Fix upload path shell: bash run: | @@ -495,6 +513,16 @@ jobs: python --version 2>&1 | grep "Python 3\.9" bash build/ci-py-build-wheels.sh + - uses: actions/setup-python@v2.2.2 + with: + python-version: 3.10 + architecture: x86 + - name: Build and test the wheel + shell: bash + run: | + python --version 2>&1 | grep "Python 3\.10" + bash build/ci-py-build-wheels.sh + - name: Fix upload path shell: bash run: | diff --git a/src/rust/iced-x86-py/build-wheels.sh b/src/rust/iced-x86-py/build-wheels.sh index 98ada7658..7e2bc6bbb 100755 --- a/src/rust/iced-x86-py/build-wheels.sh +++ b/src/rust/iced-x86-py/build-wheels.sh @@ -31,7 +31,7 @@ for whl in orig-dist/*.whl; do done rm -rf orig-dist -for PYBIN in /opt/python/cp{36,37,38,39}*/bin; do +for PYBIN in /opt/python/cp{36,37,38,39,310}*/bin; do "$PYBIN/python" -m pip install -U pytest "$PYBIN/python" -m pip install iced-x86 --no-index -f dist/ --only-binary iced-x86 "$PYBIN/python" -m pytest --color=yes --code-highlight=yes diff --git a/src/rust/iced-x86-py/tox.ini b/src/rust/iced-x86-py/tox.ini index cfcdd342a..be75ba943 100644 --- a/src/rust/iced-x86-py/tox.ini +++ b/src/rust/iced-x86-py/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{36,37,38,39} + py{36,37,38,39,310} pypy3 [testenv]