Skip to content

Commit 1c33924

Browse files
committed
Update pipeline
1 parent 3abdfe0 commit 1c33924

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/main.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ on:
1010
- cron: "0 0 * * *"
1111
workflow_dispatch:
1212

13-
permissions:
14-
id-token: write
15-
contents: read
16-
issues: write
17-
pull-requests: write
18-
1913
jobs:
2014

2115
test:
16+
permissions:
17+
pull-requests: write
2218
runs-on: ${{ matrix.os }}
2319
name: ${{ matrix.os }} - ${{ matrix.python }}
24-
continue-on-error: ${{ matrix.experimental }}
2520
strategy:
2621
fail-fast: false
2722
matrix:
@@ -72,9 +67,16 @@ jobs:
7267
run: python -c "import sys; print(sys.version)"
7368
- name: Run Tests
7469
run: python -u -m pyperformance.tests
75-
- name: Notify result for experimental tasks
70+
continue-on-error: ${{ matrix.experimental }}
71+
- name: Notify result for experimental tasks (Failure)
7672
uses: thollander/actions-comment-pull-request@v2
7773
if: failure() && ${{ matrix.experimental }} == true
7874
with:
7975
message: |
8076
'${{ matrix.os }} - ${{ matrix.python }} is failed, but allowed as the experimental task.'
77+
- name: Notify result for experimental tasks (Success)
78+
uses: thollander/actions-comment-pull-request@v2
79+
if: success() && ${{ matrix.experimental }} == true
80+
with:
81+
message: |
82+
'${{ matrix.os }} - ${{ matrix.python }} is passed, now we can disable experimental flag.'

0 commit comments

Comments
 (0)