Skip to content

Commit e518e83

Browse files
committed
Enhance PR test workflow with concurrency and path ignore settings
This commit updates the PR test workflow by adding concurrency management to cancel in-progress workflows for the same branch. Additionally, it modifies the branch specifications to remove spaces and introduces a paths-ignore directive to exclude changes in the "assets/**" directory from triggering the workflow. These changes aim to streamline the testing process and improve efficiency. 🤖 Generated with [Claude Code](https://claude.ai/code)
1 parent 89c8421 commit e518e83

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/pr-test.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,45 @@ name: PR Tests
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches: [main]
6+
paths-ignore: ["assets/**"]
67
push:
7-
branches: [ main ]
8+
branches: [main]
9+
concurrency:
10+
# New commit on branch cancels running workflows of the same branch
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
813

914
permissions:
1015
contents: read
1116

1217
jobs:
1318
test:
1419
runs-on: ubuntu-latest
15-
20+
1621
env:
17-
# ZenML configuration
1822
ZENML_DISABLE_RICH_LOGGING: "1"
1923
ZENML_LOGGING_COLORS_DISABLED: "true"
2024
ZENML_ANALYTICS_OPT_IN: "false"
2125
PYTHONIOENCODING: "UTF-8"
2226
PYTHONUNBUFFERED: "1"
2327
ZENML_STORE_URL: ${{ secrets.ZENML_STORE_URL }}
2428
ZENML_STORE_API_KEY: ${{ secrets.ZENML_STORE_API_KEY }}
25-
29+
2630
steps:
2731
- name: Checkout repository
2832
uses: actions/checkout@v4
29-
33+
3034
- name: Set up Python 3.12
3135
uses: actions/setup-python@v5
3236
with:
33-
python-version: '3.12'
34-
37+
python-version: "3.12"
38+
3539
- name: Install uv
3640
uses: astral-sh/setup-uv@v5
3741
with:
3842
enable-cache: true
39-
40-
# - name: Install dependencies
41-
# run: |
42-
# uv venv .venv -p 3.12
43-
# source .venv/bin/activate
44-
# uv pip install -r requirements.txt
45-
43+
4644
- name: Run MCP smoke test
4745
run: |
4846
echo "Running MCP smoke test..."

0 commit comments

Comments
 (0)