Skip to content

Commit

Permalink
Add path to limit CI execution on certain path changes (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-park authored Jan 23, 2024
1 parent 3dd4f3f commit 77d26f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ name: docs
on:
push:
branches: [ master ]
paths:
- "docs/**"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- ".github/workflows/docs.yml"

jobs:
docs:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ name: build
on:
push:
branches: [ master ]
paths:
- "src/viztracer/**"
- "tests/**"
- ".github/workflows/python-package.yml"
pull_request:
schedule:
- cron: '0 10 * * *'
paths:
- "src/viztracer/**"
- "tests/**"
- ".github/workflows/python-package.yml"

jobs:
build:
Expand Down Expand Up @@ -36,15 +42,9 @@ jobs:
with:
xcode-version: latest-stable
- name: Install dependencies
if: matrix.os != 'windows-latest'
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install dependencies on Windows
if: matrix.os == 'windows-latest'
run: |
python -m pip install --upgrade pip
if (Test-Path -Path '.\requirements-dev.txt' -PathType Leaf) {pip install -r requirements-dev.txt}
pip install -r requirements-dev.txt
- name: Build dist and test with unittest
if: matrix.os != 'windows-latest'
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ name: wheels
on:
push:
branches: [ master ]
paths:
- "src/viztracer/**"
- ".github/workflows/wheels.yml"
pull_request:
paths:
- "src/viztracer/**"
- ".github/workflows/wheels.yml"

jobs:
build-wheels-linux:
Expand Down

0 comments on commit 77d26f2

Please sign in to comment.