-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 849 Bytes
/
tox.yml
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
30
31
32
33
34
35
36
name: Test Application
on:
pull_request:
push:
branches:
- main
- test-me-*
workflow_dispatch:
jobs:
tox:
name: 🧪 Tox / ${{ matrix.env }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env: ['py37', 'py38', 'py39', 'py310', 'py311']
steps:
- name: 🛎 Checkout
uses: actions/checkout@v3
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: |
${{
matrix.env == 'py37' && '3.7' ||
matrix.env == 'py38' && '3.8' ||
matrix.env == 'py39' && '3.9' ||
matrix.env == 'py310' && '3.10' ||
'3.11'
}}
- run: python -m pip install --upgrade setuptools tox virtualenv
- run: tox -e ${{ matrix.env }}