Skip to content

Commit 1b3e871

Browse files
committed
update ci to test pgstac 0.8 and 0.9
1 parent fc9abcb commit 1b3e871

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/cicd.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
include:
15+
- {python: '3.12', pypgstac: '0.9.*'}
16+
- {python: '3.12', pypgstac: '0.8.*'}
17+
- {python: '3.11', pypgstac: '0.8.*'}
18+
- {python: '3.9', pypgstac: '0.8.*'}
19+
- {python: '3.8', pypgstac: '0.8.*'}
20+
1521
timeout-minutes: 20
1622

1723
steps:
@@ -22,12 +28,12 @@ jobs:
2228
- name: Setup Python
2329
uses: actions/setup-python@v5
2430
with:
25-
python-version: ${{ matrix.python-version }}
31+
python-version: ${{ matrix.python }}
2632
cache: pip
2733
cache-dependency-path: setup.py
2834

2935
- name: Lint code
30-
if: ${{ matrix.python-version == 3.11 }}
36+
if: ${{ matrix.python == 3.11 }}
3137
run: |
3238
python -m pip install pre-commit
3339
pre-commit run --all-files
@@ -39,6 +45,7 @@ jobs:
3945
run: |
4046
python -m pip install --upgrade pip
4147
python -m pip install .[dev,server]
48+
python -m pip install "pypgstac==${{ matrix.pypgstac }}"
4249
4350
- name: Run test suite
4451
run: python -m pytest --cov stac_fastapi.pgstac --cov-report xml --cov-report term-missing

0 commit comments

Comments
 (0)