generated from fastai/nbdev_template
-
-
Notifications
You must be signed in to change notification settings - Fork 30
60 lines (52 loc) · 1.97 KB
/
plots.yml
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
name: Plots
on: [push]
jobs:
plots:
strategy:
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Do some macOS specific installs for Python 3.12
run: |
brew install ${{inputs.brew_install}}
if: matrix.os == 'macos-latest'
- name: Do some Ubunutu specific installs for Python 3.12
if: runner.os == 'Linux'
run: |
sudo apt install ${{inputs.sudo_apt_install}}
- name: Install dependencies
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda install eccodes numpy matplotlib rasterio satpy[all] cartopy -c conda-forge
$CONDA/bin/pip install -e .
- name: Run plotting script
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EUMETSAT_USER_KEY: ${{ secrets.EUMETSAT_USER_KEY }}
EUMETSAT_USER_SECRET: ${{ secrets.EUMETSAT_USER_SECRET }}
run: |
python scripts/generate_test_plots.py
cml-publish cloud_mask_UK.png --md >> report.md
cml-publish rss_UK.png --md >> report.md
cml-publish hrv_UK.png --md >> report.md
cml-publish cloud_mask_RSS.png --md >> report.md
cml-publish rss_RSS.png --md >> report.md
cml-publish hrv_RSS.png --md >> report.md
# cml-publish tailored_cloud_mask.png --md >> report.md
# cml-publish tailored_rss.png --md >> report.md
cml-send-comment report.md
- name: Archive plots
uses: actions/upload-artifact@v4
with:
name: plots
path: |
*.png
report.md # Add the report file to the artifacts for reference