From 3b01163f701672b570e3ae54cd8782ddf340178c Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 15 Feb 2021 13:09:44 -0500 Subject: [PATCH] add build job to test install of wheels --- .github/workflows/build.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2674329..eb3d0ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,8 +45,29 @@ jobs: name: wheelhouse path: ./dist/*.tar.gz - upload_pypi: + test_install: + name: Test install on ${{ matrix.os }} / ${{ matrix.python-version }} / ${{ matrix.architecture }} needs: [build_wheels, build_sdist] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy-2.7", "pypy-3.6", "pypy-3.7"] + architecture: ["x64", "x86"] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.architecture }} + - uses: actions/download-artifact@v2 + with: + name: wheelhouse + path: dist + - run: pip install --no-index --find-links=./dist sysaudit + + upload_pypi: + needs: [test_install] runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: