Skip to content

Update test run python versions #189

Update test run python versions

Update test run python versions #189

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: 42 0 * * 5
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 'pypy3']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint Python code with flake8
run: |
pip install flake8
# ignore max complexity and line break after binary operator
flake8 tnefparse/ tests/ setup.py --ignore=C901,W504
# check max complexity, but do not enforce it
flake8 tnefparse/ tests/ setup.py --count --exit-zero --max-complexity=10 --statistics
- name: Test with pytest
run: |
pip install -e .[optional]
pip install pytest pytest-console-scripts pytest-cov codecov
pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
files: coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true