-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 3.07 KB
/
Copy pathupdate-eastern-panhandle.yml
File metadata and controls
69 lines (64 loc) · 3.07 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Update eastern Panhandle flags
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/update-eastern-panhandle.yml'
- '.github/recovery/eastern.trigger'
- 'scripts/update_eastern_panhandle.py'
- 'scripts/florida_flag_terms.py'
- 'scripts/apply_florida_flag_terms.py'
- 'scripts/flag_image_verification.py'
- 'scripts/refresh_south_walton_current_flag.py'
- 'scripts/apply_visitbeaches_confidence.py'
- 'data/visitbeaches/south-walton.json'
- 'data/visitbeaches/cape-san-blas.json'
- 'data/visitbeaches/st-joe-beach.json'
- 'data/visitbeaches/franklin-county.json'
- 'requirements.txt'
- 'tests/test_eastern_panhandle_flags.py'
- 'tests/test_south_walton_current_visual.py'
- 'tests/test_visitbeaches_confidence.py'
schedule:
- cron: '12,42 * * * *'
permissions:
contents: write
concurrency:
group: knowthegulf-eastern-data-write
cancel-in-progress: false
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: pip
- run: pip install -r requirements.txt
- name: Validate Eastern collector entry points
run: python -m py_compile scripts/update_eastern_panhandle.py scripts/florida_flag_terms.py scripts/apply_florida_flag_terms.py scripts/flag_image_verification.py scripts/refresh_south_walton_current_flag.py scripts/apply_visitbeaches_confidence.py
- name: Run Eastern collector regression tests
run: python -m pytest -q tests/test_eastern_panhandle_flags.py tests/test_south_walton_current_visual.py tests/test_visitbeaches_confidence.py
- name: Refresh eastern Panhandle flags
run: timeout 8m python scripts/update_eastern_panhandle.py
- name: Apply canonical Florida warning-flag terminology
run: python scripts/apply_florida_flag_terms.py south-walton cape-san-blas gulf-state-park-beaches st-joe-beach franklin-county
- name: Re-verify South Walton from bounded Current Conditions visual evidence
run: python scripts/refresh_south_walton_current_flag.py
- name: Reapply VisitBeaches corroboration and safe gap fill
run: python scripts/apply_visitbeaches_confidence.py south-walton cape-san-blas st-joe-beach franklin-county
- name: Commit refreshed eastern Panhandle flags
run: |
if [[ -z "$(git status --porcelain data/south-walton data/cape-san-blas data/gulf-state-park-beaches data/st-joe-beach data/franklin-county)" ]]; then
echo "No eastern Panhandle data changes to commit."; exit 0
fi
bash scripts/persist_paths.sh "data: refresh eastern Panhandle flags" \
data/south-walton data/cape-san-blas data/gulf-state-park-beaches data/st-joe-beach data/franklin-county
# Full unit tests still run centrally in site-health.yml.
# Pages deployment is intentionally centralized in deploy-pages.yml.