Bump pytest-cov from 4.0.0 to 5.0.0 #112
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: Linux | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install GDAL | |
run: | | |
python -m pip install --upgrade pip | |
pip install --no-cache-dir Cython | |
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL | |
- name: Test GDAL installation | |
run: | | |
python -c "from osgeo import gdal" | |
gdalinfo --version | |
- name: libgeos and cartopy | |
run: | | |
sudo apt -y install libgeos-dev | |
pip install cartopy | |
- name: Install dependencies | |
run: | | |
#$CONDA/bin/mamba env update --file environment.yml --name base | |
pip install -r requirements.txt -r requirements-dev.txt | |
python setup.py install | |
# - name: Lint with flake8 | |
# run: | | |
# # add CONDA/bin/ in front of everything | |
# $CONDA/bin/conda install flake8 | |
# # stop the build if there are Python syntax errors or undefined names | |
# $CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
# $CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Generate coverage report | |
run: | | |
python -m pytest -vvv --cov=Hapi --cov-report=xml | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 |