Update test run python versions #189
This file contains hidden or 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: 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 |