Update SUMC (Sofia) realtime feed #2259
This file contains hidden or 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: Integration tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'scripts/**' | |
| - '.github/workflows/add_new_or_updated_feeds.yml' | |
| - '.github/workflows/**' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| set -e | |
| python -m pip install --upgrade pip | |
| python -m pip install pytest wheel numpy | |
| sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable | |
| sudo apt-get update | |
| sudo apt-get install -y gdal-bin libgdal-dev python3-gdal libspatialindex-dev | |
| export CFLAGS="$(gdal-config --cflags)" | |
| export LDFLAGS="$(gdal-config --libs)" | |
| export CPATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPATH" || true | |
| export CPLUS_INCLUDE_PATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPLUS_INCLUDE_PATH" || true | |
| python -m pip install "GDAL==$(gdal-config --version)" || \ | |
| python -m pip install --no-binary GDAL "GDAL==$(gdal-config --version)" | |
| # Install repo requirements | |
| if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi | |
| - name: Integration tests with pytest | |
| run: | | |
| pytest -v ./tests/test_integration.py --html=mobility-catalogs-integration-tests-report.html --self-contained-html | |
| - name: Upload the HTML artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mobility-catalogs-integration-tests-report-v${{ github.run_id }}.${{ github.run_number }} | |
| path: mobility-catalogs-integration-tests-report.html |