Skip to content

Commit

Permalink
use mamba for eventdisplay CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GernotMaier committed Aug 25, 2023
1 parent 5511d18 commit 3f4caa7
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/v2dl3-eventdisplay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 3f4caa7

Please sign in to comment.