Skip to content

Commit

Permalink
trying a new method for environment activation
Browse files Browse the repository at this point in the history
  • Loading branch information
ceserz2 committed Nov 11, 2023
1 parent 3feec33 commit 7b7cae9
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push]
jobs:
build-and-unit-test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
Expand All @@ -27,39 +30,31 @@ jobs:
- name: Install numpy
run: |
activate-environment: openmcyclus-env
sudo apt install python3-pip
pip3 install numpy
conda info
- name: Install OpenMC cross section library
run: |
activate-environment: openmcyclus-env
run:
$GITHUB_WORKSPACE/openmc-xs.bash

- name: Install OpenMC from Mamba
run: |
activate-environment: openmcyclus-env
run:
mamba install openmc

- name: Install OpenMC cross section library
run: |
activate-environment: openmcyclus-env
run:
echo "OPENMC_CROSS_SECTIONS=cross_sections.xml" >> $GITHUB_ENV

- name: Install OpenMCyclus
run: |
activate-environment: openmcyclus-env
run:
pip install .

- name: Checking the environment
run: |
activate-environment: openmcyclus-env
run:
conda info

- name: Run Tests
run: |
activate-environment: openmcyclus-env
conda info
run:
pytest tests/unit_tests/test_depletion.py

0 comments on commit 7b7cae9

Please sign in to comment.