Skip to content

Commit 037218f

Browse files
committed
spliiting tests and pre-commit hooks
1 parent b429fef commit 037218f

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check pre-commit hooks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
env:
10+
FORCE_COLOR: "1"
11+
12+
jobs:
13+
tests-using-pixi:
14+
timeout-minutes: 10
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out the repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install Pixi
23+
uses: prefix-dev/[email protected]
24+
with:
25+
pixi-version: "latest"
26+
run-install: false
27+
28+
- name: Install pre-commit
29+
run: pixi global install pre-commit
30+
31+
- name: install pre-commit hooks
32+
run: pre-commit install
33+
34+
- name: Run pre-commit hooks
35+
run: pre-commit run --all --show-diff-on-failure

.github/workflows/tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,3 @@ jobs:
3636

3737
- name: Run tests
3838
run: pixi run --environment dev test
39-
40-
- name: Run pre-commit hooks
41-
run: pixi run pre-commit-hooks

0 commit comments

Comments
 (0)