Skip to content

Commit 5468896

Browse files
authored
update GitHub Actions/CI to Python 3.10 (#1543) (#1586)
1 parent 024844d commit 5468896

6 files changed

Lines changed: 30 additions & 33 deletions

File tree

.github/workflows/flake8.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: flake8
2+
3+
on:
4+
[ push, pull_request ]
5+
6+
jobs:
7+
flake8_py3:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-python@v3
12+
name: setup Python
13+
with:
14+
python-version: '3.10'
15+
- name: Checkout pygeoapi
16+
uses: actions/checkout@master
17+
- name: Install flake8
18+
run: pip3 install flake8
19+
- name: Run flake8
20+
uses: suo/flake8-github-action@releases/v1
21+
with:
22+
checkName: 'flake8_py3'
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,12 @@ on:
1414
- released
1515

1616
jobs:
17-
flake8_py3:
18-
runs-on: ubuntu-22.04
19-
steps:
20-
- name: Setup Python
21-
uses: actions/setup-python@v1
22-
with:
23-
python-version: 3.8
24-
architecture: x64
25-
cache: 'pip'
26-
- name: Checkout pygeoapi
27-
uses: actions/checkout@master
28-
- name: Install flake8
29-
run: pip install flake8
30-
- name: Run flake8
31-
uses: suo/flake8-github-action@releases/v1
32-
with:
33-
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
3717
main:
38-
needs: [flake8_py3]
3918
runs-on: ubuntu-22.04
4019
strategy:
4120
matrix:
4221
include:
43-
- python-version: 3.8
22+
- python-version: '3.10'
4423
env:
4524
PYGEOAPI_CONFIG: "$(pwd)/pygeoapi-config.yml"
4625

@@ -115,7 +94,6 @@ jobs:
11594
python3 setup.py install
11695
pip3 install --upgrade numpy elasticsearch
11796
pip3 install --upgrade numpy "sqlalchemy<2"
118-
pip3 install --upgrade flake8
11997
pip3 install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
12098
#pip3 install --upgrade rasterio==1.1.8
12199
- name: setup test data ⚙️
@@ -169,12 +147,11 @@ jobs:
169147
pip3 list -v
170148
171149
admin:
172-
needs: [flake8_py3]
173-
runs-on: ubuntu-20.04
150+
runs-on: ubuntu-22.04
174151
strategy:
175152
matrix:
176153
include:
177-
- python-version: 3.8
154+
- python-version: '3.10'
178155
env:
179156
PYGEOAPI_CONFIG: "tests/pygeoapi-test-config-admin.yml"
180157
PYGEOAPI_OPENAPI: "tests/pygeoapi-test-openapi-admin.yml"

docs/source/development.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Install Python with the option to enable SQLite extensions:
8282

8383
.. code-block:: bash
8484
85-
LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include" PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install 3.7.6
85+
LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include" PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install 3.10.12
8686
8787
Configure SQLite from Homebrew over that one shipped with the OS:
8888

pygeoapi/models/cql.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
# =================================================================
3434

3535
from datetime import date, datetime
36-
from typing import Any, List, Optional, Union
37-
from typing_extensions import Literal
36+
from typing import Any, List, Literal, Optional, Union
3837

3938
from pydantic import BaseModel, Field, RootModel
4039

requirements-provider.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ GDAL<=3.8.3
77
geoalchemy
88
netCDF4
99
oracledb
10-
pandas; python_version < '3.7'
11-
pandas==1.2.5; python_version >= '3.7'
10+
pandas
1211
psycopg2
1312
pygeofilter[backend-sqlalchemy]
1413
pygeoif

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Babel
22
click
33
filelock
44
Flask
5-
importlib_metadata
65
jinja2
76
jsonschema
87
pydantic
@@ -17,5 +16,4 @@ requests
1716
shapely<2.0
1817
SQLAlchemy<2.0.0
1918
tinydb
20-
typing-extensions
2119
unicodecsv

0 commit comments

Comments
 (0)