-
Notifications
You must be signed in to change notification settings - Fork 119
115 lines (115 loc) · 3.89 KB
/
build.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "Build",
"on": {
"push": {
"branches": [ "main" ]
},
"pull_request": null,
},
"jobs": {
"linux": {
"name": "CI on x86_64",
"runs-on": "ubuntu-latest",
"strategy": {
"fail-fast": false,
"matrix": {
"name": [
"python-37",
"python-38",
"python-39",
"python-310",
"doc",
"doctest",
"sphinx",
"lint",
"pep8",
"codespell",
],
"include": [
{
"name": "python-37",
"python": "3.7",
"toxenv": "py37",
"arch": "x64",
},
{
"name": "python-38",
"python": "3.8",
"toxenv": "py38",
"arch": "x64",
},
{
"name": "python-39",
"python": "3.9",
"toxenv": "py39",
"arch": "x64",
},
{
"name": "python-310",
"python": "3.10",
"toxenv": "py310",
"arch": "x64",
},
{
"name": "doc",
"python": "3.10",
"toxenv": "doc",
"arch": "x64",
},
{
"name": "doctest",
"python": "3.10",
"toxenv": "doctest",
"arch": "x64",
},
{
"name": "sphinx",
"python": "3.10",
"toxenv": "sphinx",
"arch": "x64",
},
{
"name": "lint",
"python": "3.10",
"toxenv": "lint",
"arch": "x64",
},
{
"name": "pep8",
"python": "3.10",
"toxenv": "pep8",
"arch": "x64",
},
{
"name": "codespell",
"python": "3.10",
"toxenv": "codespell",
"arch": "x64",
},
],
},
},
"steps": [
{ "uses": "actions/checkout@v3" },
{
"uses": "actions/setup-python@v4",
"with": {
"python-version": "${{ matrix.python }}",
"architecture": "${{ matrix.arch }}"
},
},
{ "run": "sudo apt-get update" },
{ "run": "sudo apt-get install cargo" },
{ "run": "pip --version" },
{ "run": "pip install tox" },
{ "run": "tox --version" },
{
"env": {
"TOXENV": "${{matrix.toxenv}}"
},
"run": "tox",
},
],
},
},
}