-
Notifications
You must be signed in to change notification settings - Fork 28
66 lines (61 loc) · 2.26 KB
/
Copy pathmain.yml
File metadata and controls
66 lines (61 loc) · 2.26 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: "CI"
on:
push:
jobs:
tests:
name: "Python ${{ matrix.python-version }} (${{ matrix.tox-envs }})"
runs-on: "ubuntu-latest"
env:
PY_COLORS: 1
strategy:
matrix:
include:
- python-version: "2.7"
tox-envs: "py27"
continue-on-error: false
- python-version: "3.7"
tox-envs: "py37"
continue-on-error: false
- python-version: "3.8"
tox-envs: "py38"
continue-on-error: false
- python-version: "3.9"
tox-envs: "py39"
continue-on-error: false
- python-version: "3.10"
tox-envs: "py310"
continue-on-error: false
- python-version: "2.7"
tox-envs: "py27-ansible19,py27-ansible24,py27-ansible25,py27-ansible26,py27-ansible27,py27-ansible28,py27-ansible29,py27-ansible210"
continue-on-error: false
- python-version: "3.7"
tox-envs: "py37-ansible25,py37-ansible26,py37-ansible27,py37-ansible28,py37-ansible29,py37-ansible210"
continue-on-error: false
- python-version: "3.8"
tox-envs: "py38-ansible25,py38-ansible26,py38-ansible27,py38-ansible28,py38-ansible29,py38-ansible210"
continue-on-error: false
- python-version: "3.9"
tox-envs: "py39-ansible25,py39-ansible26,py39-ansible27,py39-ansible28,py39-ansible29,py39-ansible210"
continue-on-error: false
- python-version: "3.10"
tox-envs: "py310-ansible4,py310-ansible5,py310-ansible6"
continue-on-error: false
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
set -xe -o nounset
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade virtualenv tox
- name: "Run tox targets for ${{ matrix.python-version }}"
continue-on-error: "${{ matrix.continue-on-error }}"
run: |
set -xe -o nounset
python -m tox -a -vv
python -m tox -v -e ${{ matrix.tox-envs }} -- -v --color=yes