Bump python for CI, install psycopg2 from wheel
This commit is contained in:
parent
d289650afe
commit
5378fac326
35
.github/workflows/etl.yml
vendored
35
.github/workflows/etl.yml
vendored
@ -5,21 +5,20 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: "3.11"
|
||||||
- name:
|
- name: Install dependencies
|
||||||
Install dependencies
|
run: |
|
||||||
run: |
|
sudo apt-get install libgeos-dev
|
||||||
sudo apt-get install libgeos-dev
|
python -m pip install --upgrade pip
|
||||||
python -m pip install --upgrade pip
|
python -m pip install pytest
|
||||||
python -m pip install pytest
|
python -m pip install flake8
|
||||||
python -m pip install flake8
|
python -m pip install -r etl/requirements.txt
|
||||||
python -m pip install -r etl/requirements.txt
|
- name: Run Flake8
|
||||||
- name: Run Flake8
|
run: |
|
||||||
run: |
|
flake8 etl --ignore=E501
|
||||||
ls etl/*py | grep -v 'join_building_data' | xargs flake8 --exclude etl/__init__.py
|
- name: Run tests
|
||||||
- name: Run tests
|
run: |
|
||||||
run: |
|
python -m pytest
|
||||||
python -m pytest
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Python packages for planning data import
|
# Python packages for planning data import
|
||||||
psycopg2==2.8.6
|
psycopg2-binary==2.9.7
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Python packages for etl
|
# Python packages for etl
|
||||||
fiona
|
fiona
|
||||||
osmnx==1.6.0
|
osmnx==1.6.0
|
||||||
psycopg2==2.7.5
|
psycopg2-binary==2.9.7
|
||||||
retrying==1.3.3
|
retrying==1.3.3
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
shapely
|
shapely
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
psycopg2==2.8.3
|
psycopg2-binary==2.9.7
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
|
Loading…
Reference in New Issue
Block a user