Skip to content

Release to pin cirrus-geo stable #57

Release to pin cirrus-geo stable

Release to pin cirrus-geo stable #57

Workflow file for this run

name: Python Test
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install .
- name: Lint with flake8
run: |
# Convert to this run when flake8 issues have been resolved
# flake8 . --count --show-source --statistics
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# all Python files should follow PEP8
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Test with pytest
run: pytest --cov=cirrus --cov-report=xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true