File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Test
22on : [push, pull_request]
33jobs :
44 check :
5+ if : github.event_name != 'pull_request' || github.head_ref != 'devel'
56 name : Check
67 runs-on : ubuntu-latest
78 steps :
2728 REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2829 - run : pre-commit run -a --show-diff-on-failure
2930 test :
31+ if : github.event_name != 'pull_request' || github.head_ref != 'devel'
3032 name : Test py${{ matrix.python }}
31- needs : check
3233 runs-on : ubuntu-latest
3334 strategy :
3435 matrix :
@@ -46,22 +47,21 @@ jobs:
4647 deploy :
4748 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
4849 name : PyPI Deploy
49- needs : test
50+ needs : [check, test]
5051 runs-on : ubuntu-latest
5152 steps :
5253 - uses : actions/checkout@v2
5354 with :
5455 fetch-depth : 0
5556 - uses : casperdcl/deploy-pypi@v1
5657 with :
57- password : ${{ secrets.pypi_token }}
58+ password : ${{ secrets.PYPI_TOKEN }}
5859 build : true
5960 - id : collect_assets
6061 name : Collect assets
6162 run : |
6263 echo "::set-output name=asset_path::$(ls dist/*.whl)"
6364 echo "::set-output name=asset_name::$(basename dist/*.whl)"
64- git fetch --unshallow --tags
6565 git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
6666 - id : create_release
6767 uses : actions/create-release@v1
You can’t perform that action at this time.
0 commit comments