Skip to content

Commit

Permalink
update ci to test pgstac 0.8 and 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 14, 2024
1 parent fc9abcb commit 0c5f2ad
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c5f2ad

Please sign in to comment.