2024 data #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Continuous Integration" | |
on: [ push, pull_request ] | |
jobs: | |
compare-output: | |
name: Compare output | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y -qq --no-install-recommends libgdal-dev unzip | |
- name: Install Python dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install pytest | |
- name: Run tests | |
run: pytest | |
- name: Create output | |
run: | | |
mkdir output | |
./tiger_address_convert.py tests/fixtures/tl_2020_37143_edges/tl_2020_37143_edges.shp output/37143.csv | |
diff output/37143.csv tests/fixtures/expected_37143.csv | |
cat output/37143.csv | ./calculate_postcode_centroids.py > output/us_postcodes.csv | |
diff output/us_postcodes.csv tests/fixtures/expected_us_postcodes.csv |