forked from openclimatefix/Satip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c2b039
commit bb22165
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |