File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 55 branches : [ main ]
66
77jobs :
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+
834 build :
35+ needs : [pip_check]
936 runs-on : ubuntu-latest
1037 steps :
1138 - uses : actions/checkout@v4
82109 runs-on : ubuntu-latest
83110 if : github.event.pull_request.user.login == 'dependabot[bot]'
84111 steps :
112+ - name : Ignore broken packages
113+ shell : bash -l {0}
114+ run : python .ci_support/checktitle.py "${{ github.event.pull_request.title }}"
85115 - name : Enable auto-merge for bot PRs
86116 run : gh pr merge --auto --squash "$PR_URL"
87117 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