From c0402ab5e1a6df3bcd230a84287aab3d8e8f85eb Mon Sep 17 00:00:00 2001 From: Xinsong Lin Date: Thu, 25 Jan 2024 22:32:42 -0800 Subject: [PATCH] trying github action --- .github/workflows/build_and_publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 7ce3d667..12b13c89 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -6,7 +6,7 @@ on: tags: ['v*'] jobs: - build: + build-and-test: runs-on: ${{ matrix.os }} strategy: matrix: @@ -26,6 +26,11 @@ jobs: with: name: wheels-${{ matrix.os }}-${{ matrix.pyver }}-${{ strategy.job-index }} path: wheelhouse/* + - name: Test + # install the built wheels for python 3.10 + run: | + python -m pip install --user wheelhouse/*cp310*.whl + python -m unittest discover -v -s mplib/tests build-sdist: runs-on: ubuntu-latest @@ -50,7 +55,7 @@ jobs: nightly-release: if: startsWith(github.ref, 'refs/heads/') # if a commit is pushed - needs: [build, build-sdist] + needs: [build-and-test, build-sdist] runs-on: ubuntu-latest permissions: contents: write # create nightly release