Skip to content

Commit fb14c48

Browse files
committed
ci: add commitlint and pre-commit in test.yml
Refs: RATY-253
1 parent 10314e4 commit fb14c48

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ on:
77
branches: [ main ]
88

99
jobs:
10+
commitlint:
11+
name: Check commit messages
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Run commitlint
17+
uses: wagoid/commitlint-github-action@3d28780bbf0365e29b144e272b2121204d5be5f3 # v6.1.2
18+
19+
pre-commit:
20+
name: Run pre-commit hooks
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Setup Python 3.10
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.10'
29+
- name: Run pre-commit
30+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
31+
1032
test:
1133
name: Python ${{ matrix.python_version }}
1234
runs-on: ubuntu-latest
@@ -17,10 +39,10 @@ jobs:
1739
python_version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1840

1941
steps:
20-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
2143

2244
- name: Set up Python ${{ matrix.python_version }}
23-
uses: actions/setup-python@v4
45+
uses: actions/setup-python@v5
2446
with:
2547
python-version: ${{ matrix.python_version }}
2648
cache: 'pip'

0 commit comments

Comments
 (0)