Skip to content

Commit

Permalink
Create Plots.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasgrewal16 authored Mar 13, 2024
1 parent 5c2b039 commit bb22165
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/Plots.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Plots

on: [push]

jobs:
plots:
strategy:
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- 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: Generate test plots
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export EUMETSAT_USER_KEY="${{ secrets.EUMETSAT_USER_KEY }}"
export EUMETSAT_USER_SECRET="${{ secrets.EUMETSAT_USER_SECRET }}"
$CONDA/bin/python scripts/generate_test_plots.py
- name: Archive plots
uses: actions/upload-artifact@v2
with:
name: plots
path: |
*.png

0 comments on commit bb22165

Please sign in to comment.