Skip to content

connect the notbook testing with the pypi-deployment #415

connect the notbook testing with the pypi-deployment

connect the notbook testing with the pypi-deployment #415

Workflow file for this run

name: pypi-deployment
on: [push]
jobs:
main-package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "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]
- name: Generate coverage report
run: |
python -m pytest -sv -m "not plot"
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
optional-packages:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest]
python-version: ["3.11", "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,viz]
- name: Generate coverage report
run: |
python -m pytest -v --cov=pyramids --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
Trigger-Test-Notebook:

Check failure on line 85 in .github/workflows/pypi-deployment.yml

View workflow run for this annotation

GitHub Actions / pypi-deployment

Invalid workflow file

The workflow is not valid. .github/workflows/pypi-deployment.yml (Line: 85, Col: 1): Unexpected value 'Trigger-Test-Notebook'
needs: optional-packages
uses: ./.github/workflows/jupyter-notebooks-examples.yml
with:
environment-path: ${{ matrix.python-version }}