Skip to content

Commit 49cc544

Browse files
committed
added running pre-commit as a first workflow's step
1 parent 5a585e5 commit 49cc544

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/docker_workflow.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@ on:
1313
- cron: '0 8 * * *'
1414

1515
jobs:
16+
run_precommit:
17+
name: Run pre-commit
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out
21+
uses: actions/checkout@v3
22+
- name: Setup Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.10'
26+
cache: 'pip'
27+
- name: Run pre-commit
28+
uses: pre-commit/[email protected]
1629
run_examples:
17-
name: Run examples
30+
name: Build and run examples
1831
runs-on: ubuntu-latest
1932
container:
2033
image: intel/oneapi:latest
@@ -28,10 +41,6 @@ jobs:
2841
uses: actions/checkout@v3
2942
- name: Setup cmake
3043
uses: jwlawson/[email protected]
31-
- name: Setup Python
32-
uses: actions/setup-python@v4
33-
with:
34-
python-version: '3.10'
3544
- name: Build examples
3645
run: |
3746
cmake -B build -DENABLE_SYCL=on
@@ -41,5 +50,3 @@ jobs:
4150
mpirun -n 2 ./build/src/example1
4251
mpirun -n 2 ./build/src/example2
4352
mpirun -n 2 ./build/src/example3
44-
- name: Run pre-commit
45-
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)