Skip to content

Commit

Permalink
ci: adding conditional unittest trigger
Browse files Browse the repository at this point in the history
Tests will only trigger based on changes to specific files, and
affects both push and pull request actions

Signed-off-by: Lee, Kin Long Kelvin <[email protected]>
  • Loading branch information
laserkelvin committed Feb 26, 2024
1 parent be5ce2d commit d1c985f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/run-unittest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
name: CBI unittest

on: [push]
on:
push:
branches: [ "main" ]
paths:
- 'bin/**'
- 'codebasin/**'
- 'etc/**'
- 'tests/**'
- 'MANIFEST.in'
- 'setup.py'
pull_request:
branches: [ "main" ]
paths:
- 'bin/**'
- 'codebasin/**'
- 'etc/**'
- 'tests/**'
- 'MANIFEST.in'
- 'setup.py'

jobs:
build:
Expand Down

0 comments on commit d1c985f

Please sign in to comment.