Skip to content

Commit

Permalink
fix(.github): Fix github actions to run on correct conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Oct 4, 2024
1 parent 19c6240 commit 80984b6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 18 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/bandit-security-check-python-agents-api.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Bandit security check python agents-api
run-name: ${{ github.actor }} is checking the security of the code

on:
pull_request:
branches:
- main
- dev
paths:
- 'agents-api/**'
push:
paths:
- 'agents-api/**'

jobs:
bandit_check:
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/lint-agents-api-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Lint and typecheck agents-api
run-name: ${{ github.actor }} is linting and typechecking the code

# TODO: Fix CI github actions
# SCRUM-26

on: [pull_request]
name: Lint agents-api
run-name: ${{ github.actor }} is linting the code

on:
pull_request:
paths:
- 'agents-api/**'
push:
paths:
- 'agents-api/**'

jobs:
Lint-And-Format:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test-agents-api-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Test agents-api
run-name: ${{ github.actor }} is testing the code

# TODO: Fix CI github actions
# SCRUM-26

on: [pull_request]
on:
pull_request:
paths:
- 'agents-api/**'
push:
paths:
- 'agents-api/**'

jobs:
Test:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/typecheck-agents-api-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Typecheck agents-api
run-name: ${{ github.actor }} is typechecking the code

# TODO: Fix CI github actions
# SCRUM-26

on: [pull_request]
on:
pull_request:
paths:
- 'agents-api/**'
push:
paths:
- 'agents-api/**'

jobs:
Typecheck:
Expand Down

0 comments on commit 80984b6

Please sign in to comment.