Skip to content

mock the integration test for the get_parameters to download only one… #66

mock the integration test for the get_parameters to download only one…

mock the integration test for the get_parameters to download only one… #66

name: pypi-deployment
on: [push]
jobs:
Main-Package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install GDAL
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL==3.10.0
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
gdalinfo --version
- name: Install dependencies
run: |
pip install .[dev,test]
- name: Run Tests
run: |
python -m pytest -vvv -m "not fig_share" --cov=src/Hapi --cov-report=xml
env:
HAPI_DATA_DIR: ${{ github.workspace }}/src/Hapi/parameters
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3