Skip to content

Commit 2ca553e

Browse files
committed
feat(ci): only build if tests pass
To avoid shipping something that doesn't work. Also: Includes few cosmetic edits for uniform style of the ci.html file.
1 parent 5a0b76f commit 2ca553e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77
jobs:
88
lint:
9-
runs-on: 'ubuntu-latest'
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out code.
1212
uses: actions/checkout@v4
@@ -73,6 +73,7 @@ jobs:
7373
run: poetry run pytest
7474

7575
build:
76+
needs: test
7677
strategy:
7778
fail-fast: false
7879
matrix:
@@ -85,11 +86,9 @@ jobs:
8586
uses: actions/checkout@v4
8687
- name: Linux Install
8788
if: matrix.platform == 'ubuntu-latest'
88-
run: |
89-
sudo apt-get install -y bsdmainutils
89+
run: sudo apt-get install -y bsdmainutils
9090
- name: Script
91-
run: |
92-
./check_integrity.sh
91+
run: ./check_integrity.sh
9392
- name: Brew release
9493
if: matrix.platform == 'macos-latest'
9594
run: |

0 commit comments

Comments
 (0)