fixed neutronics #9
This file contains hidden or 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: Process data | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
commit-to-main: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 # Ensure full history is available for commits | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
environment-file: environment.yml | |
activate-environment: baby_1l_run_3 | |
- name: Run neutronics model | |
shell: bash -l {0} | |
working-directory: analysis/neutron | |
run: | | |
python openmc_model.py | |
jupyter-nbconvert --to notebook postprocessing.ipynb --execute | |
- name: Run foil analysis | |
shell: bash -l {0} | |
working-directory: analysis/neutron | |
run: | | |
papermill foil_analysis.ipynb temp.ipynb -p download_from_raw False | |
jupyter-nbconvert --to notebook --execute temp.ipynb | |
- name: Run tritium model | |
shell: bash -l {0} | |
working-directory: analysis/tritium | |
run: | | |
python tritium_model.py | |
jupyter-nbconvert --to notebook tritium_model.ipynb --execute | |
- name: Commit and Push Changes | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
git add data/processed_data.json | |
git commit -m "Automated data processing ${date}" | |
git push origin main |