Skip to content

Commit 7d7c75e

Browse files
authored
Merge pull request #25 from freelawproject/gha_prevent_duplicate_runs
chore(ci): Prevent duplicate GitHub Actions runs
2 parents 8a21635 + 15c23a7 commit 7d7c75e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/lint.yml

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

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

59
jobs:
610
lint:

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Tests
22

33
on:
4-
push:
5-
branches:
6-
- "**"
74
pull_request:
5+
push:
86
branches:
9-
- "main"
7+
- main
108

119
jobs:
1210
test:
@@ -24,4 +22,4 @@ jobs:
2422
run: docker compose -f docker-compose.dev.yml up --build -d
2523

2624
- name: Run tests
27-
run: docker exec inception-embedding-service pytest tests -v
25+
run: docker exec inception-embedding-service pytest tests -v

0 commit comments

Comments
 (0)