Skip to content

Commit

Permalink
tests: skip duplicates on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Dec 28, 2020
1 parent 3bc196a commit 6b0eef8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test
on: [push, pull_request]
jobs:
check:
if: github.event_name != 'pull_request' || github.head_ref != 'devel'
name: Check
runs-on: ubuntu-latest
steps:
Expand All @@ -27,8 +28,8 @@ jobs:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pre-commit run -a --show-diff-on-failure
test:
if: github.event_name != 'pull_request' || github.head_ref != 'devel'
name: Test py${{ matrix.python }}
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -46,22 +47,21 @@ jobs:
deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
name: PyPI Deploy
needs: test
needs: [check, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: casperdcl/deploy-pypi@v1
with:
password: ${{ secrets.pypi_token }}
password: ${{ secrets.PYPI_TOKEN }}
build: true
- id: collect_assets
name: Collect assets
run: |
echo "::set-output name=asset_path::$(ls dist/*.whl)"
echo "::set-output name=asset_name::$(basename dist/*.whl)"
git fetch --unshallow --tags
git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
- id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 6b0eef8

Please sign in to comment.