Skip to content

Commit 0f7edec

Browse files
authored
Run build workflow also on main branch (#211)
1 parent 03388c1 commit 0f7edec

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/push.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
types: [opened, synchronize]
66
merge_group:
77
types: [checks_requested]
8+
push:
9+
# Always run on push to main. The build cache can only be reused
10+
# if it was saved by a run from the repository's default branch.
11+
# The run result will be identical to that from the merge queue
12+
# because the commit is identical, yet we need to perform it to
13+
# seed the build cache.
14+
branches:
15+
- main
816

917
env:
1018
HATCH_VERSION: 1.7.0
@@ -33,12 +41,10 @@ jobs:
3341
run: pip install hatch==$HATCH_VERSION
3442

3543
- name: Verify linting
36-
run: |
37-
hatch run lint:verify
44+
run: hatch run lint:verify
3845

3946
- name: Run unit tests
40-
run: |
41-
hatch run unit:test
47+
run: hatch run unit:test
4248

4349
- name: Publish test coverage
4450
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)