-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.28 KB
/
process.yml
File metadata and controls
48 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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_12
- 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 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