Merge pull request #3 from dcarrillo/improve-ci

Improve CI flow
This commit is contained in:
Daniel Carrillo 2020-12-26 12:41:14 +01:00 committed by GitHub
commit 352b9da211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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: |