Add generate_apptainer_def_files.py to test_python.sh

This commit is contained in:
Ole Schuett 2023-03-24 16:27:50 +01:00 committed by Ole Schütt
parent d020b97aec
commit dc34ec903c
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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.