Skip to content

Commit 9f1aee1

Browse files
authored
👷 Run tests on push to main (#15)
1 parent 47e2e52 commit 9f1aee1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test-and-publish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test and Publish
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
branches:
69
- main
@@ -39,6 +42,7 @@ jobs:
3942
publish:
4043
runs-on: ubuntu-latest
4144
needs: [test]
45+
if: github.event_name == 'pull_request' # Only run on PRs
4246
environment:
4347
name: testpypi
4448
url: https://test.pypi.org/project/ohlc-toolkit

0 commit comments

Comments
 (0)