Skip to content

Commit

Permalink
check format in a seperate job
Browse files Browse the repository at this point in the history
  • Loading branch information
meiravgri committed Oct 20, 2024
1 parent a3946e8 commit ef8e781
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/event-pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,29 @@ jobs:
run: sudo .install/install_script.sh
- name: install python packages
run: pip3 install -r requirements.txt
- name: check format
run: make check-format
- name: unit tests
run: make unit_test
- name: flow tests
run: make flow_test VERBOSE=1

format:
name: format
runs-on: ubuntu-24.04
needs: check-if-docs-only
if: needs.check-if-docs-only.outputs.only-docs-changed == 'false'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
- name: install dependencies
run: sudo .install/install_script.sh
- name: check format
run: make check-format

coverage:
needs: [basic-tests, check-if-docs-only]
if: ${{ !github.event.pull_request.draft && needs.check-if-docs-only.outputs.only-docs-changed == 'false' }}
Expand Down

0 comments on commit ef8e781

Please sign in to comment.