Skip to content

Commit c3c7789

Browse files
setup of format and lint CI
1 parent 8f00318 commit c3c7789

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Format and Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # Run on push to any branch
7+
pull_request:
8+
branches:
9+
- main
10+
- master
11+
12+
jobs:
13+
format-and-lint:
14+
name: Format and Lint Check
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Install pixi
22+
uses: prefix-dev/[email protected]
23+
with:
24+
pixi-version: "latest"
25+
26+
- name: Install dependencies
27+
run: pixi install --all-environments
28+
29+
- name: Check formatting
30+
run: pixi run format-check
31+
32+
- name: Lint code
33+
run: pixi run lint
34+

0 commit comments

Comments
 (0)