2022-03-18 12:02:14 -04:00
|
|
|
name: etl
|
2022-03-18 12:22:21 -04:00
|
|
|
on: [pull_request]
|
2022-03-18 12:02:14 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
- name:
|
|
|
|
Install dependencies
|
|
|
|
run: |
|
2022-03-18 12:32:52 -04:00
|
|
|
apt-get install libgeos-dev
|
2022-03-18 12:02:14 -04:00
|
|
|
python -m pip install --upgrade pip
|
2022-03-18 12:30:14 -04:00
|
|
|
python -m pip install pytest
|
|
|
|
python -m pip install flake8
|
2022-03-18 12:21:29 -04:00
|
|
|
python -m pip install -r etl/requirements.txt
|
2022-03-18 12:02:14 -04:00
|
|
|
- name: Run Flake8
|
|
|
|
run: |
|
2022-03-18 12:18:44 -04:00
|
|
|
ls etl/*py | grep -v 'join_building_data' | xargs flake8 --exclude etl/__init__.py
|
2022-03-18 12:02:14 -04:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
python -m pytest
|