Skip to content

Commit e46705a

Browse files
committed
Update workflows
1 parent eecd99b commit e46705a

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030

3131
- name: Configure and verify
3232
id: config
@@ -45,7 +45,7 @@ jobs:
4545
echo "pyver=3.13" >> $GITHUB_OUTPUT
4646
4747
- name: Set up Python
48-
uses: actions/setup-python@v5
48+
uses: actions/setup-python@v6
4949
with:
5050
python-version: ${{ steps.config.outputs.pyver }}
5151

@@ -98,10 +98,10 @@ jobs:
9898

9999
steps:
100100
- name: Checkout code
101-
uses: actions/checkout@v4
101+
uses: actions/checkout@v6
102102

103103
- name: Set up Python
104-
uses: actions/setup-python@v5
104+
uses: actions/setup-python@v6
105105
with:
106106
python-version: ${{ matrix.pyver }}
107107
architecture: ${{ matrix.arch }}
@@ -151,10 +151,10 @@ jobs:
151151

152152
steps:
153153
- name: Checkout code
154-
uses: actions/checkout@v4
154+
uses: actions/checkout@v6
155155

156156
- name: Set up Python
157-
uses: actions/setup-python@v5
157+
uses: actions/setup-python@v6
158158
with:
159159
python-version: ${{ needs.main.outputs.pyver }}
160160

.github/workflows/test.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14+
lint:
15+
name: Check code syntax and styling
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v6
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: '3.14'
26+
27+
- name: Install dependencies
28+
run: pip install --group lint
29+
30+
- name: Verify no code issue
31+
run: flake8 .
32+
1433
test:
1534
name: Test ${{ matrix.os }}-${{ matrix.pyver }}-${{ matrix.arch }}
1635
runs-on: ${{ matrix.os }}
@@ -47,10 +66,10 @@ jobs:
4766

4867
steps:
4968
- name: Checkout code
50-
uses: actions/checkout@v4
69+
uses: actions/checkout@v6
5170

5271
- name: Set up Python
53-
uses: actions/setup-python@v5
72+
uses: actions/setup-python@v6
5473
with:
5574
python-version: ${{ matrix.pyver }}
5675
architecture: ${{ matrix.arch }}

0 commit comments

Comments
 (0)