Skip to content

NoneType check for average duration property #195

NoneType check for average duration property

NoneType check for average duration property #195

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
name: Test ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- 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
python -m pip install tox
python -m pip install --pre tox-gh-actions
- name: Test
run: tox
lint:
name: Lint ${{ matrix.toxenv }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.12"]
toxenv: ["black", "isort", "flake8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: |
python -m pip install tox
- name: Run ${{ matrix.toxenv }}
run: |
tox
env:
TOXENV: ${{ matrix.toxenv }}
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install Cython==3.0.11
python3 -m pip install coverage
python3 -m pip install .[test]
env:
TRACE_LINES: true
- name: Test
run: |
coverage run manage.py test
coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true