Update generate_test_plots.py #2
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
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 |