Develop #127
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: aemworkflow | |
| on: [pull_request] | |
| jobs: | |
| test-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: python3-pip gdal-bin openmpi-bin libopenmpi-dev libblas-dev liblapack-dev libatlas-base-dev gfortran libproj-dev | |
| version: 1.0 | |
| - name: Set up Python 3.12.9 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12.9 | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgdal-dev | |
| pip install GDAL==$(gdal-config --version) | |
| pip install pytest codecov coverage pytest-cov | |
| pip install -r requirements.txt | |
| - name: Run tests with coverage | |
| run: | | |
| pytest --cov --cov-report xml:results.xml --cov-report json --disable-warnings | |
| - name: Get Cover | |
| uses: orgoro/[email protected] | |
| with: | |
| coverageFile: results.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| thresholdAll: .8 |