Skip to content

set up pre-commit lite workflow #105

set up pre-commit lite workflow

set up pre-commit lite workflow #105

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
name: ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.12', '3.11', '3.10', '3.9', '3.8']
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: pip
cache-dependency-path: requirements/tests.txt
- run: pip install tox
- run: tox run -e py${{ matrix.python }}
min:
name: Minimum Versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.8'
cache: pip
cache-dependency-path: requirements/tests.txt
- run: pip install tox
- run: tox run -e py-min