Bump ruff from 0.8.3 to 0.8.4 #1136
Workflow file for this run
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: e2e | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres" | |
services: | |
postgres: | |
image: ghcr.io/peopleforbikes/docker-postgis-bna:17-3.4-1 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.12" | |
cache: "poetry" | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \ | |
osm2pgrouting osm2pgsql osmctools osmium-tool postgresql-client postgis | |
- name: Setup the project | |
run: poetry install | |
- run: | | |
poetry run bna configure docker | |
# poetry run bna run usa "santa rosa" "new mexico" 3570670 | |
poetry run bna prepare all usa "santa rosa" "new mexico" 3570670 | |
poetry run bna import all usa "santa rosa" "new mexico" 3570670 --input-dir data/santa-rosa-new-mexico-usa | |
poetry run bna compute usa "santa rosa" "new mexico" --input-dir data/santa-rosa-new-mexico-usa | |
- name: Run integration tests | |
run: | | |
set -x | |
echo "List tables for debugging purpose." | |
psql -c "\d" $DATABASE_URL | |
echo "Ensure neighborhood_overall_scores table contains 23 records." | |
ACTUAL=$(psql -t -c "SELECT COUNT(*) FROM neighborhood_overall_scores;" $DATABASE_URL) | |
test $ACTUAL -eq 23 |