Skip to content

add ability to download AUX layers for COP-DEM (#41) #117

add ability to download AUX layers for COP-DEM (#41)

add ability to download AUX layers for COP-DEM (#41) #117

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: chartboost/ruff-action@v1
unit-tests:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package with test extras
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Run unit tests (no network required)
run: pytest -m unit --cov=HydroEO --cov-report=xml -v
- name: Upload coverage report
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
files: coverage.xml
flags: unit
# integration-tests:
# # Only run when the relevant secrets are available (not on forks)
# needs: unit-tests
# runs-on: ubuntu-latest
# if: |
# github.event_name == 'push' &&
# github.repository_owner == 'DHI'
# steps:
# - uses: actions/checkout@v6
# - name: Set up Python 3.12
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
# cache: "pip"
# - name: Install package with test extras
# run: |
# python -m pip install --upgrade pip
# pip install ".[test]"
# - name: Run live integration tests
# env:
# EDL_USERNAME: ${{ secrets.EDL_USERNAME }}
# EDL_PASSWORD: ${{ secrets.EDL_PASSWORD }}
# CREODIAS_USERNAME: ${{ secrets.CREODIAS_USERNAME }}
# CREODIAS_PASSWORD: ${{ secrets.CREODIAS_PASSWORD }}
# HYDROWEB_API_KEY: ${{ secrets.HYDROWEB_API_KEY }}
# RUN_E2E: ${{ secrets.RUN_E2E }}
# run: pytest -m integration -v --timeout=3600