From 3f4caa70ff1eb8ba07520c078aa5ddd23818d820 Mon Sep 17 00:00:00 2001 From: Gernot Maier Date: Fri, 25 Aug 2023 12:12:37 +0200 Subject: [PATCH] use mamba for eventdisplay CI --- .github/workflows/v2dl3-eventdisplay.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/v2dl3-eventdisplay.yml b/.github/workflows/v2dl3-eventdisplay.yml index 9f47cd46..bb09b09c 100644 --- a/.github/workflows/v2dl3-eventdisplay.yml +++ b/.github/workflows/v2dl3-eventdisplay.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 @@ -31,24 +31,18 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install conda dependencies - env: - PYTHON_VERSION: ${{ matrix.python-version }} - run: | - source $CONDA/etc/profile.d/conda.sh - conda config --set always_yes yes --set changeps1 no - conda update -q conda - conda env create -n v2dl3Eventdisplay -f environment-eventdisplay.yml - conda activate v2dl3Eventdisplay - conda info + - name: Install mamba + uses: mamba-org/setup-micromamba@v1 + with: + environment-file: environment-eventdisplay.yml + create-args: python=${{ matrix.python-version }} + init-shell: bash - name: pytest shell: bash -leo pipefail {0} env: PYTHONPATH: . run: | - source $CONDA/etc/profile.d/conda.sh - conda activate v2dl3Eventdisplay pytest . - name: download test data @@ -60,8 +54,6 @@ jobs: env: PYTHONPATH: . run: | - source $CONDA/etc/profile.d/conda.sh - conda activate v2dl3Eventdisplay # point-like tests python pyV2DL3/script/v2dl3_for_Eventdisplay.py \ -f ./64080.anasum.root \