File tree 4 files changed +77
-0
lines changed
4 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ import sys
2
+
3
+
4
+ if __name__ == "__main__" :
5
+ pr_title = sys .argv [1 ]
6
+ with open ("disableautomerge.txt" , "r" ) as f :
7
+ disable_lst = f .readlines ()
8
+ if len (pr_title ) > 0 :
9
+ for disable in disable_lst :
10
+ if len (disable .rstrip ()) > 0 and disable .rstrip () in pr_title :
11
+ sys .exit (1 )
Original file line number Diff line number Diff line change
1
+ from setuptools import setup , find_packages
2
+
3
+ with open ("../disableautomerge.txt" , "r" ) as f :
4
+ disable_lst = f .readlines ()
5
+
6
+ with open ("../requirements.txt" , "r" ) as f :
7
+ install_requires = []
8
+ for l in f .readlines ():
9
+ skip = False
10
+ for disable in disable_lst :
11
+ if len (disable .rstrip ()) > 0 and l .startswith (disable .rstrip () + "==" ):
12
+ skip = True
13
+ break
14
+ if not skip :
15
+ install_requires .append (l )
16
+
17
+ setup (
18
+ name = 'MetaPackage' ,
19
+ packages = find_packages (exclude = ['*.py' ]),
20
+ install_requires = install_requires ,
21
+ )
Original file line number Diff line number Diff line change 5
5
branches : [ main ]
6
6
7
7
jobs :
8
+ pip_check :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Build Environment File
13
+ run : |
14
+ echo -e "channels:\n - conda-forge\n" > .condarc
15
+ cp mpie_cmti/environment.yml environment.yml
16
+ tail --lines=+5 base/environment.yml >> environment.yml
17
+ tail --lines=+5 md/environment.yml >> environment.yml
18
+ tail --lines=+5 pyiron/environment.yml >> environment.yml
19
+ cat environment.yml
20
+ - name : Setup Mambaforge
21
+ uses : conda-incubator/setup-miniconda@v3
22
+ with :
23
+ python-version : " 3.11"
24
+ miniforge-version : latest
25
+ condarc-file : .condarc
26
+ environment-file : environment.yml
27
+ - name : Test
28
+ shell : bash -l {0}
29
+ timeout-minutes : 30
30
+ run : |
31
+ pip install ./.ci_support --no-deps --no-build-isolation
32
+ pip check
33
+
8
34
build :
35
+ needs : [pip_check]
9
36
runs-on : ubuntu-latest
10
37
steps :
11
38
- uses : actions/checkout@v4
82
109
runs-on : ubuntu-latest
83
110
if : github.event.pull_request.user.login == 'dependabot[bot]'
84
111
steps :
112
+ - name : Ignore broken packages
113
+ shell : bash -l {0}
114
+ run : python .ci_support/checktitle.py "${{ github.event.pull_request.title }}"
85
115
- name : Enable auto-merge for bot PRs
86
116
run : gh pr merge --auto --squash "$PR_URL"
87
117
env :
Original file line number Diff line number Diff line change
1
+ damask
2
+ fenics
3
+ hyperspy
4
+ pyiron-continuum
5
+ pyiron-experimental
6
+ pyiron_experimental
7
+ pystem
8
+ python-ace
9
+ pytorch
10
+ pyvista
11
+ pyxem
12
+ scanf
13
+ temmeta
14
+ vtk
15
+ nglview
You can’t perform that action at this time.
0 commit comments