-
Notifications
You must be signed in to change notification settings - Fork 154
29 lines (29 loc) · 805 Bytes
/
Copy pathtests.yaml
File metadata and controls
29 lines (29 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Tests
on:
push:
branches: [main]
paths-ignore: [ '*.md', '*.rst']
pull_request:
paths-ignore: [ '*.md', '*.rst' ]
jobs:
tests:
name: ${{ matrix.name || matrix.python }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
- {python: '3.13', tox: 'py313'}
- {python: '3.12', tox: 'py312'}
- {python: '3.11', tox: 'py311'}
- {python: '3.10', tox: 'py310'}
- {python: '3.9', tox: 'py39'}
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.4.0
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: pip
- run: pip install tox
- run: tox run -e ${{ matrix.tox }}