Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paths to make CI strict #398

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading