Build integrated AequilibraE docs #874
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: Code coverage | |
on: [pull_request] | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
env: | |
HAS_SECRETS: ${{ secrets.AWS_SECRET_ACCESS_KEY != '' }} | |
strategy: | |
matrix: | |
python-version: [3.10] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install libsqlite3-mod-spatialite | |
sudo apt install -y libspatialite-dev | |
pip3 install setuptools --upgrade | |
pip3 install -r requirements.txt | |
pip3 install spatialite | |
pip3 install pytest | |
pip3 install pytest-cov | |
sudo ln -s /usr/lib/x86_64-linux-gnu/mod_spatialite.so /usr/lib/x86_64-linux-gnu/mod_spatialite | |
- name: Compile library | |
run: | | |
python3 setup.py build_ext --inplace | |
- name: Generate coverage report | |
run: | | |
python3 -m pytest --cov=aequilibrae tests/ |