Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion .github/workflows/codeflash-optimize.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CodeFlash

on:
pull_request:
pull_request_target:
paths:
- "**"
workflow_dispatch:
Expand All @@ -26,6 +26,12 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "codeflash-optimize.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: 🐍 Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-bubblesort-pytest-no-git.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/end-to-end-test-bubblesort-unittest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-bubblesort-unittest.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/end-to-end-test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Coverage E2E

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -19,6 +19,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-coverage.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/end-to-end-test-futurehouse.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-futurehouse.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/end-to-end-test-init-optim.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-init-optim.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/end-to-end-test-tracer-replay.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,13 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-test-tracer-replay.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi


- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/end-to-end-topological-sort-test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: end-to-end-test

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
Expand All @@ -21,6 +21,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "end-to-end-topological-sort-test.yaml"; then
echo "This workflow file has been modified. Exiting for security."
exit 1
fi

- name: Set up Python 3.11 for CLI
uses: astral-sh/setup-uv@v5
Expand Down
Loading