-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.54 KB
/
process.yml
File metadata and controls
54 lines (43 loc) · 1.54 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
49
50
51
52
53
name: Process raw sensor files
on:
push:
branches:
- main
paths:
- 'data/raw/**'
workflow_dispatch:
jobs:
process:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install pandas numpy scipy openpyxl holoviews bokeh plotly
- name: Process raw files
run: python src/process_all.py
- name: Generate Miguel Bravo plot
run: python src/generate_miguel_bravo.py
- name: Generate climatology plots
run: python src/generate_climatology.py
- name: Generate timeseries and climatology Plotly plots
run: python src/generate_plots.py
- name: Commit updated outputs
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/individual_data.csv data/Miguel_Bravo/ miguel_plot.html \
climatological-year/climatological_plot.html \
climatological-year/climatological_plot_mbl.html \
plots/timeseries_plot.html plots/climatology_plot.html \
index.html
git diff --cached --quiet || git commit -m "data: regenerate outputs [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ADD THIS SECTION