1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- python-version : ["3.8", "3.9", "3.10", "3.11"]
13+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12" ]
1414 timeout-minutes : 20
1515
16- services :
17- db_service :
18- image : ghcr.io/stac-utils/pgstac:v0.7.1
19- env :
20- POSTGRES_USER : username
21- POSTGRES_PASSWORD : password
22- POSTGRES_DB : postgis
23- POSTGRES_HOST : localhost
24- POSTGRES_PORT : 5432
25- PGUSER : username
26- PGPASSWORD : password
27- PGDATABASE : postgis
28- ALLOW_IP_RANGE : 0.0.0.0/0
29- # Set health checks to wait until postgres has started
30- options : >-
31- --health-cmd pg_isready
32- --health-interval 10s
33- --health-timeout 10s
34- --health-retries 10
35- --log-driver none
36- ports :
37- # Maps tcp port 5432 on service container to the host
38- - 5432:5432
39-
4016 steps :
4117 - name : Check out repository code
4218 uses : actions/checkout@v4
@@ -55,18 +31,18 @@ jobs:
5531
5632 - name : Install types
5733 run : |
58- pip install ./stac_fastapi/types[dev]
34+ python -m pip install ./stac_fastapi/types[dev]
5935
6036 - name : Install core api
6137 run : |
62- pip install ./stac_fastapi/api[dev]
38+ python -m pip install ./stac_fastapi/api[dev]
6339
6440 - name : Install Extensions
6541 run : |
66- pip install ./stac_fastapi/extensions[dev]
42+ python -m pip install ./stac_fastapi/extensions[dev]
6743
6844 - name : Test
69- run : pytest -svvv
45+ run : python -m pytest -svvv
7046 env :
7147 ENVIRONMENT : testing
7248
@@ -93,14 +69,14 @@ jobs:
9369 run : |
9470 python -m pip install ./stac_fastapi/types[dev]
9571
96- - name : Install extensions
97- run : |
98- python -m pip install ./stac_fastapi/extensions
99-
10072 - name : Install core api
10173 run : |
10274 python -m pip install ./stac_fastapi/api[dev,benchmark]
10375
76+ - name : Install extensions
77+ run : |
78+ python -m pip install ./stac_fastapi/extensions
79+
10480 - name : Run Benchmark
10581 run : python -m pytest stac_fastapi/api/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-json output.json
10682
0 commit comments