Skip to content

Commit 26bec5d

Browse files
author
Kevin Chu
committed
ci: add lint to actions
1 parent b1c591e commit 26bec5d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,31 @@ concurrency:
88

99
jobs:
1010

11+
run-linter:
12+
runs-on: ubuntu-20.04
13+
strategy:
14+
matrix:
15+
python-version: [3.8.6]
16+
17+
steps:
18+
- name: Checkout this repository
19+
uses: actions/checkout@v3
20+
with:
21+
lfs: true
22+
23+
- name: Checkout actions repository
24+
uses: actions/checkout@v3
25+
with:
26+
repository: Exabyte-io/actions
27+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
28+
path: actions
29+
ref: feat/SOF-6640
30+
31+
- name: Run ruff linter
32+
uses: ./actions/py/lint
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
1136
run-tests:
1237
runs-on: ubuntu-20.04
1338
strategy:
@@ -47,7 +72,7 @@ jobs:
4772

4873

4974
publish:
50-
needs: run-tests
75+
needs: [run-linter, run-tests]
5176
runs-on: ubuntu-latest
5277
if: github.ref_name == 'dev'
5378

0 commit comments

Comments
 (0)