Skip to content

Commit

Permalink
Add mcstas test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Nov 30, 2023
1 parent b2830d8 commit 49cb7f3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/condatest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- name: Install NCrystal
run: |
python3 -m pip install ncrystal
#FIXME: Actually use current source: python3 -m pip install ./src_co --no-deps -vv
#python3 -m pip install ncrystal --no-deps
python3 -m pip install ./src_co --no-deps -vv
- name: Basic NCrystal tests
run: |
Expand All @@ -72,6 +72,18 @@ jobs:
nctool --test
python3 -c 'import NCrystal'
- name: conda install mcstas-core
run: |
conda install -c conda-forge mcstas-core
- name: Run McStas NCrystal_example.instr
run: |
set -eux
mkdir mcstasrun
cd mcstasrun
cp "${CONDA_PREFIX}/share/mcstas/resources/examples/NCrystal_example.instr" .
mcrun NCrystal_example.instr sample_cfg=Al_sg225.ncmat -s1000 -n1e5
#Final step, so tmate step can check if we got this far.
- name: Final
id: final-step
Expand Down

0 comments on commit 49cb7f3

Please sign in to comment.