add shebang #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build on Ubuntu 22 | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '44 4 * * 0' | ||
jobs: | ||
install: | ||
run-openmc-installer: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: checkout_main_repo | ||
uses: actions/checkout@v5 | ||
with: | ||
repository: 'openmsr/are' | ||
ref: '${{github.sha}}' | ||
path: are | ||
- name: bootstrap | ||
run: sudo apt-get -y update | ||
- name: environment | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-name: cad2omc | ||
create-args: >- | ||
python=3.10 | ||
openmc_0.13.3=dagmc_mpi_openmpi* | ||
init_shell: bash | ||
- name: check openmc | ||
run: | | ||
openmc --version | ||
python -c "import openmc" | ||
- name: install cad-to-openmc | ||
run: | | ||
python -m pip install upgrade pip | ||
python -m pip install cad_to_openmc | ||
- name: | ||
run_tests: | ||
strategy: | ||
matrix: | ||
command: ['k_eff','energy'] | ||
steps: | ||
- name: run ${{ command }} | ||
run: python run.py ${{ command }} |