mirror of https://github.com/pallets/flask.git
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: Tests
|
|
on:
|
|
push:
|
|
branches: [main, stable]
|
|
paths-ignore: ['docs/**', '*.md', '*.rst']
|
|
pull_request:
|
|
paths-ignore: [ 'docs/**', '*.md', '*.rst' ]
|
|
jobs:
|
|
tests:
|
|
name: ${{ matrix.name || matrix.python }}
|
|
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- {python: '3.13'}
|
|
- {python: '3.12'}
|
|
- {name: Windows, python: '3.12', os: windows-latest}
|
|
- {name: Mac, python: '3.12', os: macos-latest}
|
|
- {python: '3.11'}
|
|
- {python: '3.10'}
|
|
- {python: '3.9'}
|
|
- {name: PyPy, python: 'pypy-3.10', tox: pypy310}
|
|
- {name: Minimum Versions, python: '3.12', tox: py-min}
|
|
- {name: Development Versions, python: '3.9', tox: py-dev}
|
|
steps:
|
|
- uses: pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
|
|
with:
|
|
environment: ${{ format('py{0}', matrix.python) }}
|
|
python-version: ${{ matrix.python }}
|
|
typing:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
|
|
with:
|
|
environment: 'typing'
|
|
python-version: '3.x'
|
|
workflow:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: pallets/actions/zizmor@5c46d4abb052877fa7e84db0ceec21b33673559e
|