Skip to content

Merge pull request #273 from ircwaves/release-0.15.0 #565

Merge pull request #273 from ircwaves/release-0.15.0

Merge pull request #273 from ircwaves/release-0.15.0 #565

Workflow file for this run

name: Python Test
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
steps:
- name: Checkout
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: |
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@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
verbose: true