Skip to content

Add hypothesis for property based testing #1717

Add hypothesis for property based testing

Add hypothesis for property based testing #1717

Workflow file for this run

name: Run template tests
on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
test-template:
name: test ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
python-version:
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout source
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Cache tox
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: .tox
key: test-${{ hashFiles('pyproject.toml') }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: python -m pip install tox tox-gh
- name: Run tests
run: tox run
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}