Skip to content

Commit

Permalink
autotesting commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ebknudsen committed May 3, 2024
1 parent c755ee7 commit 0af5592
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/testcommands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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 }}
File renamed without changes.

0 comments on commit 0af5592

Please sign in to comment.