mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
Add generate_apptainer_def_files.py to test_python.sh
This commit is contained in:
parent
d020b97aec
commit
dc34ec903c
2 changed files with 4 additions and 4 deletions
|
|
@ -80,9 +80,7 @@ def main() -> None:
|
|||
|
||||
if ncores > os.cpu_count():
|
||||
print(
|
||||
"WARNING: More CPU cores requested for build than available ({ncores:d} > {maxcores:d})".format(
|
||||
ncores=ncores, maxcores=os.cpu_count()
|
||||
)
|
||||
f"WARNING: More CPU cores requested for build than available ({ncores} > {os.cpu_count()})"
|
||||
)
|
||||
|
||||
for release in cp2k_release_list:
|
||||
|
|
@ -134,7 +132,7 @@ def main() -> None:
|
|||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
def check_ncores(value):
|
||||
def check_ncores(value: str) -> int:
|
||||
ivalue = int(value)
|
||||
if ivalue < 1:
|
||||
raise argparse.ArgumentTypeError("%s is an invalid number of CPU cores" % value)
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ unzip -q -d ./tools/minimax_tools/1_xData 1_xData.zip
|
|||
run_test ./tools/prettify/prettify_test.py
|
||||
run_test ./tools/minimax_tools/minimax_to_fortran_source.py --check
|
||||
run_test ./tools/docker/generate_dockerfiles.py --check
|
||||
run_test ./tools/apptainer/generate_apptainer_def_files.py --check
|
||||
|
||||
run_test mypy --strict ./tools/minimax_tools/minimax_to_fortran_source.py
|
||||
run_test mypy --strict ./tools/dashboard/generate_dashboard.py
|
||||
|
|
@ -38,6 +39,7 @@ run_test mypy --strict ./tools/precommit/precommit.py
|
|||
run_test mypy --strict ./tools/precommit/check_file_properties.py
|
||||
run_test mypy --strict ./tools/precommit/format_makefile.py
|
||||
run_test mypy --strict ./tools/docker/generate_dockerfiles.py
|
||||
run_test mypy --strict ./tools/apptainer/generate_apptainer_def_files.py
|
||||
run_test mypy --strict ./tools/conventions/analyze_gfortran_ast.py
|
||||
|
||||
# TODO: Find a way to test generate_dashboard.py without git repository.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue