diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 919fda3..1ca36da 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,31 +8,25 @@ env: jobs: deploy: + strategy: + matrix: + python_version: [3.8, 3.9, 3.10] + name: Deploy to PyPI if: startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest container: quay.io/pypa/manylinux2014_x86_64 - steps: - - name: Print System Information - run: | - echo "uname -a: $( uname -a )" - cat /etc/issue - echo "Shell: $SHELL" - echo "Mount points:"; mount - echo "nproc: $( nproc )" - env - - - name: Chose Python version - run: | - ln -s /opt/python/cp39-cp39/bin/python3 /usr/local/bin/python3 - export PATH="/opt/python/cp39-cp39/bin:$PATH" - + steps: - name: Install dependencies run: | yum install -y epel-release libxml2-devel libzstd-devel xz-devel bzip2-devel yum install -y libacl-devel lz4-devel e2fsprogs-devel libb2-devel lzo-devel openssl-devel yum install -y librichacl-devel swig strace + - name: Setup Python + uses: actions/setup-python@v2 + with: + python_version: ${{ matrix.python_version }} - name: Install python tools run: | python3 -m pip install pytest auditwheel @@ -53,7 +47,7 @@ jobs: - name: SWIG and Compile python modules run: | touch libarchive/_libarchive.i - make PYVER=3.9 + make PYVER=${{ matrix.python_version }} - name: Build wheels run: | @@ -64,5 +58,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} - wheel_files: wheelhouse/*.whl - dry_run: true + wheel_files: wheelhouse/*.whl \ No newline at end of file