Skip to content

Functions to write cutouts to a ZIP #1130

Functions to write cutouts to a ZIP

Functions to write cutouts to a ZIP #1130

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
schedule:
# Nightly build triggered at 2 AM EST
- cron: '0 7 * * *'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: Python 3.9 with minimal dependencies
os: ubuntu-latest
python: 3.9
toxenv: py39-test
- name: Python 3.9 with all optional dependencies
os: ubuntu-latest
python: 3.9
toxenv: py39-test-alldeps
toxargs: -v --develop
- name: Python 3.10 with numpy 1.23 and full coverage
os: ubuntu-latest
python: "3.10"
toxenv: py310-test-alldeps-numpy123-cov
- name: Python 3.10 with all optional dependencies (MacOS X)
os: macos-latest
python: "3.10"
toxenv: py310-test-alldeps
- name: Python 3.10 with numpy 2
os: ubuntu-latest
python: "3.10"
toxenv: py310-test-alldeps-numpy2
- name: Python 3.11 with minimal dependencies
os: ubuntu-latest
python: 3.11
toxenv: py311-test
- name: Python 3.12 with minimal dependencies
os: ubuntu-latest
python: 3.12
toxenv: py312-test
- name: Python 3.13 with minimal dependencies
os: ubuntu-latest
python: 3.13
toxenv: py313-test
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}
- name: Install language-pack-de and tzdata
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install language-pack-de tzdata
- name: Install Python dependencies
run: python -m pip install --upgrade tox codecov
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'-cov') }}
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
file: ./coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
allowed_failures:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Code style checks
os: ubuntu-latest
python: 3.x
toxenv: codestyle
- name: (Allowed Failure) Python 3.11 with dev version of key dependencies
os: ubuntu-latest
python: 3.11
toxenv: py311-test-devdeps
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}
- name: Install language-pack-de and tzdata
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install language-pack-de tzdata
- name: Install Python dependencies
run: python -m pip install --upgrade tox codecov
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}