colouring-montreal/.github/workflows/etl.yml

25 lines
646 B
YAML
Raw Normal View History

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:
2022-03-18 12:40:40 -04:00
python-version: '3.7'
2022-03-18 12:02:14 -04:00
- name:
Install dependencies
run: |
2022-03-18 12:34:20 -04:00
sudo 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