Skip to content

Commit

Permalink
CI Pipeline (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzanmanasreh authored Feb 26, 2024
1 parent 7e88cab commit d5326c9
Show file tree
Hide file tree
Showing 38 changed files with 4,655 additions and 4,733 deletions.
10 changes: 10 additions & 0 deletions .github/scripts/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo "formatting example cases and common directory"

echo "$PWD"
pip3 install --upgrade fprettify
fprettify ./examples -r --indent 2
fprettify ./common -r --indent 2

echo "done"
21 changes: 21 additions & 0 deletions .github/workflows/pretty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pretty

on:
push:

pull_request:

workflow_dispatch:

jobs:
docs:
name: Code formatting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Check formatting
run: |
bash ./.github/scripts/format.sh
git diff --exit-code
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
*/*/run_logs
*/*/*.py
*/*/v.*
*/*/*.sh
*/*/D/*
!*/*/D/.gittouch
*.o
*.mod
.depend
initcond
initcond_random
tube
libcommon.a
.vscode
field
field
Loading

0 comments on commit d5326c9

Please sign in to comment.