Skip to content

Commit

Permalink
test_ci: only trigger test CI on pr or push to main branch with src o…
Browse files Browse the repository at this point in the history
…r tests changed, allow manually trigger
  • Loading branch information
Bodong-Yang committed May 9, 2024
1 parent 38aeaa0 commit 62813bd
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
name: test CI

on: [pull_request]
on:
pull_request:
branches:
- main
# only trigger unit test CI when src or tests changed
paths:
- "src/**"
- "tests/**"
- ".github/workflows/test.yaml"
push:
branches:
- main
# only trigger unit test CI when src or tests changed
paths:
- "src/**"
- "tests/**"
- ".github/workflows/test.yaml"
# allow the test CI to be manually triggerred
workflow_dispatch:

jobs:
pytest_with_coverage_on_supported_os:
Expand Down

0 comments on commit 62813bd

Please sign in to comment.