Merge pull request #140 from 15five/dependabot/pip/flake8-7.1.1 #218
This file contains 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/CD | |
on: [push] | |
env: | |
PYTHONDONTWRITEBYTECODE: 1 | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install tox tox-gh-actions poetry==1.4.2 | |
- run: tox | |
flake8: | |
name: Flake8 | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.11-bullseye | |
steps: | |
- uses: actions/checkout@v2 | |
- run: pip install tox poetry==1.4.2 | |
- run: tox -e flake8 | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.11-bullseye | |
steps: | |
- uses: actions/checkout@v2 | |
- run: pip install tox poetry==1.4.2 | |
- run: tox -e coverage | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |