Skip to content

Commit

Permalink
trying github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexseal committed Jan 26, 2024
1 parent 3f8e8e9 commit c0402ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags: ['v*']

jobs:
build:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c0402ab

Please sign in to comment.