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:
|
2023-08-15 09:10:08 -04:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install libgeos-dev
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
python -m pip install pytest
|
|
|
|
python -m pip install flake8
|
|
|
|
python -m pip install -r etl/requirements.txt
|
|
|
|
- name: Run Flake8
|
|
|
|
run: |
|
|
|
|
flake8 etl --ignore=E501
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
python -m pytest
|