From 7c45230c2050c2eb45173725153caf9f6e9ce330 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 16 Aug 2024 11:18:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Test=20new=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/actions/build/action.yml | 2 +- conda/environment-minimal.yml | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 conda/environment-minimal.yml diff --git a/.github/workflows/actions/build/action.yml b/.github/workflows/actions/build/action.yml index f7fe43a351..fc111489fb 100644 --- a/.github/workflows/actions/build/action.yml +++ b/.github/workflows/actions/build/action.yml @@ -62,7 +62,7 @@ runs: uses: conda-incubator/setup-miniconda@v3 with: activate-environment: bluemira - environment-file: conda/environment.yml + environment-file: conda/environment${{ inputs.os != 'ubuntu-latest' && '-minimal' || '' }}.yml miniforge-version: "latest" use-only-tar-bz2: false miniforge-variant: Mambaforge diff --git a/conda/environment-minimal.yml b/conda/environment-minimal.yml new file mode 100644 index 0000000000..39134be506 --- /dev/null +++ b/conda/environment-minimal.yml @@ -0,0 +1,30 @@ +name: bluemira +channels: + - conda-forge + - nodefaults + +variables: + # Avoid use of .local + PYTHONNOUSERSITE: "1" + + # The below settings are needed to support FreeCAD integration alongside click. + # When adding or changing an environment variable you should consider including it + # in the environment variables used in the .github/workflows/ci.yml, so as to replicate + # the user environment as closely as possible (since they don't appear to be loaded + # into the GitHub Actions shell). + # NOTE: This may produce a warning when activating the conda environment if overriding + # the machine's language + LANG: "C" + LC_ALL: "C" + PYTHONIOENCODING: "utf-8" + +dependencies: + - python >=3.10,<3.12 + - fenics-dolfinx=0.7.3 + - freecad=0.21.2 + - h5py + - mpi4py=3.1.6 + - graphviz + - pip + - pip: + - -e '../[pinned]'