VIDA-NYU / tile2net

Automated mapping of pedestrian networks from aerial imagery tiles
BSD 3-Clause "New" or "Revised" License
146 stars 22 forks source link

Add testing, improve logging, improve interactive inference #51

Closed dhodcz2 closed 5 months ago

dhodcz2 commented 6 months ago

Add Testing, Improve Logging, Improve Interactive Inference

Overview

This pull request introduces enhancements across three major areas: testing, logging, and interactive inference functionality in our application.

Changes Included


  name: Remote Test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'
          architecture: 'x64'
      - name: Install Dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements-dev.txt
          pip install .

      - name: Run tests
        run: pytest -s ./tests/test_remote.py


- **Interactive Inference Improvements**
  - Raster.inference passes args to commandline:
  `    raster.inference('--remote', '--debug')`

### Testing and Validation
- Both tests passed: the local test with `pytest -s`  and the remote test with `act push -j test` (act is for running github actions locally, not needed once it is on the remote repo.)

Requesting review from: @Mary-h86