Skip to content

Commit

Permalink
πŸ‘Œ Improve: Split CI into multiple dependent jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Oct 11, 2021
1 parent cbe4adf commit 237b90f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/main.yml
Expand Up @@ -8,7 +8,7 @@ on:
pull_request:

jobs:
test:
test_build_deploy:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,20 +28,11 @@ jobs:
run: |
tox
build:
needs: test
runs-on: ubuntu-latest

steps:
- name: Build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
python setup.py clean sdist bdist_wheel
publish:
needs: build
runs-on: ubuntu-latest

steps:
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 237b90f

Please sign in to comment.