Skip to content

Commit 2db33c3

Browse files
committed
Bump actions versions and refine CI triggers
Upgrade GitHub Action usages in workflows: actions/checkout bumped to v6 and actions/setup-python to v6 in format.yml. Simplify testing-ci.yml triggers by replacing branch filters with pull_request types (opened, synchronize, reopened) and remove the explicit push/branches section. Also remove the Codecov token entry (relying on tokenless or other auth), and keep codecov action configuration intact. These changes modernize action versions and streamline CI trigger/auth configuration.
1 parent 3823b53 commit 2db33c3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5-
branches:
6-
- main
7-
- master
8-
push:
9-
branches:
10-
- main
11-
- master
5+
types: [opened, synchronize, reopened]
126

137
jobs:
148
unit:
@@ -63,5 +57,4 @@ jobs:
6357
uses: codecov/codecov-action@v5
6458
with:
6559
files: ./coverage.xml
66-
token: ${{ secrets.CODECOV_TOKEN }}
6760
fail_ci_if_error: true

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout full history
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 0
1818

@@ -40,13 +40,13 @@ jobs:
4040

4141
steps:
4242
- name: Checkout PR branch
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@v6
4444
with:
4545
fetch-depth: 0
4646
ref: ${{ github.head_ref }}
4747

4848
- name: Set up Python
49-
uses: actions/setup-python@v5
49+
uses: actions/setup-python@v6
5050
with:
5151
python-version: "3.12"
5252

0 commit comments

Comments
 (0)