Skip to content

Instantly share code, notes, and snippets.

View adrienbernede's full-sized avatar

Adrien Bernede adrienbernede

View GitHub Profile
@adrienbernede
adrienbernede / .gitlab-ci.yml
Created October 4, 2022 19:56
A minimal example of cached python environment in GitLab CI
##############################################################################
# Copyright (c) 2022, Lawrence Livermore National Security, LLC and RADIUSS
# project contributors. See the COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
##############################################################################
variables:
PYTHON_BIN_DIR: /usr/tce/packages/python/python-3.8.2/bin
PYTHON_ENVIRONMENT_PATH: ${CI_PROJECT_DIR}/.venv
@adrienbernede
adrienbernede / .gitlab-ci.yml
Created July 12, 2022 11:07
A minimal example of shared allocation between CI jobs on Gitlab (using Slurm)
##############################################################################
# Copyright (c) 2022, Lawrence Livermore National Security, LLC and RADIUSS
# project contributors. See the COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
##############################################################################
# The allocation name must be unique
variables:
ALLOC_NAME: ${CI_PROJECT_NAME}_ci_${CI_PIPELINE_ID}