From 00499d3d7b722a47a0956325e5938904c3414902 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 15 Aug 2024 14:15:02 -0500 Subject: [PATCH] Death to conda, long live mamba --- .github/environment.yml | 8 ++++++++ .github/workflows/ci.yml | 16 +++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .github/environment.yml diff --git a/.github/environment.yml b/.github/environment.yml new file mode 100644 index 0000000..6a7c6d4 --- /dev/null +++ b/.github/environment.yml @@ -0,0 +1,8 @@ +name: test-env +channels: + - conda-forge +dependencies: + - python>=3.8 + - numpy + - pytest + - openmc==0.15.0 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cb6a66..9a12409 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,17 +15,19 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Conda - uses: conda-incubator/setup-miniconda@v3 - with: - auto-activate-base: true - activate-environment: "" + - uses: mamba-org/setup-micromamba@v1 + with: + environment-file: .github/environment.yml + init-shell: >- + bash + powershell + cache-environment: true + post-cleanup: 'all' - name: Install OpenMC shell: bash run: | - conda config --add channels conda-forge - conda install -c conda_forge openmc==0.15.0 + mamba install -c conda_forge openmc==0.15.0 - name: Clone OpenMC run: |