Skip to content

Commit cf1a4de

Browse files
Run CI on pushes for main and pull requests separately
* Run pytest CI on pushes for main and pull requests separately * Run format CI on pushes for main and pull requests separately --------- Co-authored-by: Ibraheem Tuffaha <ibraheem.z.tuffaha@gmail.com>
1 parent 655d6a6 commit cf1a4de

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/format.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: format
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
format:

.github/workflows/pytest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: pytest
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
pytest:

0 commit comments

Comments
 (0)