Skip to content

Merge pull request #1179 from sigmavirus24/pre-commit-ci-update-config #565

Merge pull request #1179 from sigmavirus24/pre-commit-ci-update-config

Merge pull request #1179 from sigmavirus24/pre-commit-ci-update-config #565

Workflow file for this run

name: Python tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- { VERSION: "3.7", TOXENV: "py37", ALLOW_FAILURE: false }
- { VERSION: "3.8", TOXENV: "py38", ALLOW_FAILURE: false }
- { VERSION: "3.9", TOXENV: "py39", ALLOW_FAILURE: false }
- { VERSION: "3.10", TOXENV: "py310", ALLOW_FAILURE: false }
- { VERSION: "3.11", TOXENV: "py311", ALLOW_FAILURE: false }
- {
VERSION: "3.11",
TOXENV: "flake8,doclint,docs,commitlint",
ALLOW_FAILURE: false,
}
- { VERSION: "3.11", TOXENV: "docstrings", ALLOW_FAILURE: true }
- { VERSION: "pypy3.9", TOXENV: "pypy", ALLOW_FAILURE: false }
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.PYTHON.VERSION }}
- name: Upgrade pip
run: |
pip install pip
pip --version
- name: Install Tox
run: |
pip install tox
tox --version
- name: Run Tox
run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
GH_RECORD_MODE: "none"
continue-on-error: ${{ matrix.PYTHON.ALLOW_FAILURE }}