From 4edcc42440824d624d66c7576550a2bece099ce6 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 26 Dec 2020 12:35:13 +0100 Subject: [PATCH] Improve CI flow --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57a1345..d6a7659 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ on: jobs: tests: runs-on: ${{ matrix.os }} + if: github.event_name == 'pull_request' strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] @@ -36,7 +37,7 @@ jobs: build_publish: runs-on: ubuntu-latest - if: github.event_name == 'push' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - uses: actions/checkout@v2 @@ -48,7 +49,7 @@ jobs: - name: Install tools run: | python -m pip install --upgrade pip - pip install twine + pip install twine wheel - name: Build run: |