File tree Expand file tree Collapse file tree 4 files changed +48
-8
lines changed
Expand file tree Collapse file tree 4 files changed +48
-8
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
1212 - name : Checkout master
1313 uses : actions/checkout@v1
1414
15- - name : Set up Python 3.7
15+ - name : Set up Python 3.10
1616 uses : actions/setup-python@v1
1717 with :
18- python-version : 3.7
18+ python-version : " 3.10 "
1919
2020 - name : Install dependencies
2121 run : |
Original file line number Diff line number Diff line change 1818 env :
1919 DEVITO_ARCH : gcc
2020 DEVITO_LANGUAGE : " openmp"
21- DEVITO_BACKEND : " core"
22- PYTHON_VERSION : " 3.7"
2321
2422 strategy :
2523 # Prevent all build to stop if a single one fails
@@ -37,15 +35,15 @@ jobs:
3735 - name : Checkout devito
3836 uses : actions/checkout@v1
3937
40- - name : Set up Python 3.7
38+ - name : Set up Python 3.10
4139 uses : actions/setup-python@v1
4240 with :
43- python-version : 3.7
41+ python-version : " 3.10 "
4442
4543 - name : Install compilers for OSX
4644 if : runner.os == 'macOS'
4745 run : |
48- brew install gcc@7
46+ brew install gcc@14
4947
5048 - name : Install dependencies
5149 run : |
Original file line number Diff line number Diff line change 1+ name : Sync Some Directory
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 6 * * *' # Runs daily at 6 AM UTC
6+ workflow_dispatch : # Allow manual trigger too
7+ push :
8+ branches :
9+ - master
10+
11+ jobs :
12+ sync-directory :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout this repo
17+ uses : actions/checkout@v4
18+ with :
19+ token : ${{ secrets.GITHUB_TOKEN }}
20+
21+ - name : Clone external repo
22+ run : |
23+ git clone https://github.com/devitocodes/devito
24+
25+ - name : Update only existing files in local
26+ run : |
27+ LOCAL_DIR="${GITHUB_WORKSPACE}/seismic"
28+ SRC_DIR="${GITHUB_WORKSPACE}/devito/examples/seismic"
29+ cd "$SRC_DIR"
30+ find . -type f | while read -r f; do
31+ if [ -f "${LOCAL_DIR}/$f" ]; then
32+ cp "$f" "${LOCAL_DIR}/$f"
33+ fi
34+ done
35+
36+ - name : Commit and push
37+ run : |
38+ git config user.name "github-actions[bot]"
39+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
40+ git add -u
41+ git commit -m "Sync local from external repo" || echo "Nothing to commit"
42+ git push origin master
Original file line number Diff line number Diff line change 1010 author_email = 'mlouboutin3@gatech.edu' ,
1111 license = 'MIT' ,
1212 packages = ['seismic' ],
13- install_requires = ['devito@ git+https://github.com/devitocodes/devito@master' , 'ipython' , 'matplotlib ' ])
13+ install_requires = ['devito[extras,tests] ' ])
You can’t perform that action at this time.
0 commit comments