Skip to content

Commit

Permalink
Run build if formatting succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
sampathweb committed Mar 10, 2023
1 parent aa55e70 commit 1ff4a33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request:
release:
types: [created]
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
name: Check the code format
Expand Down Expand Up @@ -36,7 +39,7 @@ jobs:
build:
name: Run tests
runs-on: ubuntu-latest
needs: [format]
needs: format
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
Expand Down

0 comments on commit 1ff4a33

Please sign in to comment.