From 0c5f2ad3e753f6141bc0a60fbb0e6b016dce917e Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 14 Oct 2024 17:40:01 +0200 Subject: [PATCH] update ci to test pgstac 0.8 and 0.9 --- .github/workflows/cicd.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index d4a03663..50c68292 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -11,7 +11,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + include: + - {python: '3.12', pypgstac: '0.9.*'} + - {python: '3.12', pypgstac: '0.8.*'} + - {python: '3.11', pypgstac: '0.8.*'} + - {python: '3.9', pypgstac: '0.8.*'} + - {python: '3.8', pypgstac: '0.8.*'} + timeout-minutes: 20 steps: @@ -22,12 +28,12 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ matrix.python }} cache: pip cache-dependency-path: setup.py - name: Lint code - if: ${{ matrix.python-version == 3.11 }} + if: ${{ matrix.python == 3.11 }} run: | python -m pip install pre-commit pre-commit run --all-files @@ -39,6 +45,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install .[dev,server] + python -m pip install pypgstac=={{ matrix.pypgstac }} - name: Run test suite run: python -m pytest --cov stac_fastapi.pgstac --cov-report xml --cov-report term-missing