Skip to content

Commit c4db38b

Browse files
committed
Wer
1 parent 3f1ca38 commit c4db38b

File tree

4 files changed

+190
-20
lines changed

4 files changed

+190
-20
lines changed

.github/workflows/generate_workflows.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from generate_workflows_lib import (
44
generate_test_workflow,
55
generate_lint_workflow,
6-
generate_contrib_workflow
6+
generate_contrib_workflow,
7+
generate_misc_workflow
78
)
89

910
tox_ini_path = Path(__file__).parent.parent.parent.joinpath("tox.ini")
@@ -17,3 +18,4 @@
1718
)
1819
generate_lint_workflow(tox_ini_path, workflows_directory_path)
1920
generate_contrib_workflow(workflows_directory_path)
21+
generate_misc_workflow(tox_ini_path, workflows_directory_path)

.github/workflows/misc_0.yml

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# Do not edit this file.
2+
# This file is generated automatically by executing tox -e generate_workflows
3+
4+
name: Misc 0
5+
6+
on:
7+
push:
8+
branches-ignore:
9+
- 'release/*'
10+
pull_request:
11+
env:
12+
CORE_REPO_SHA: main
13+
CONTRIB_REPO_SHA: main
14+
PIP_EXISTS_ACTION: w
15+
16+
jobs:
17+
18+
spellcheck:
19+
name: spellcheck
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout repo @ SHA - ${{ github.sha }}
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install tox
31+
run: pip install tox
32+
33+
- name: Run tests
34+
run: tox -e spellcheck -- -ra
35+
36+
tracecontext:
37+
name: tracecontext
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repo @ SHA - ${{ github.sha }}
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python 3.12
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.12"
47+
48+
- name: Install tox
49+
run: pip install tox
50+
51+
- name: Run tests
52+
run: tox -e tracecontext -- -ra
53+
54+
mypy:
55+
name: mypy
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout repo @ SHA - ${{ github.sha }}
59+
uses: actions/checkout@v4
60+
61+
- name: Set up Python 3.12
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: "3.12"
65+
66+
- name: Install tox
67+
run: pip install tox
68+
69+
- name: Run tests
70+
run: tox -e mypy -- -ra
71+
72+
mypyinstalled:
73+
name: mypyinstalled
74+
runs-on: ubuntu-latest
75+
steps:
76+
- name: Checkout repo @ SHA - ${{ github.sha }}
77+
uses: actions/checkout@v4
78+
79+
- name: Set up Python 3.12
80+
uses: actions/setup-python@v5
81+
with:
82+
python-version: "3.12"
83+
84+
- name: Install tox
85+
run: pip install tox
86+
87+
- name: Run tests
88+
run: tox -e mypyinstalled -- -ra
89+
90+
docs:
91+
name: docs
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: Checkout repo @ SHA - ${{ github.sha }}
95+
uses: actions/checkout@v4
96+
97+
- name: Set up Python 3.12
98+
uses: actions/setup-python@v5
99+
with:
100+
python-version: "3.12"
101+
102+
- name: Install tox
103+
run: pip install tox
104+
105+
- name: Run tests
106+
run: tox -e docs -- -ra
107+
108+
docker-tests-proto3:
109+
name: docker-tests-proto3
110+
runs-on: ubuntu-latest
111+
steps:
112+
- name: Checkout repo @ SHA - ${{ github.sha }}
113+
uses: actions/checkout@v4
114+
115+
- name: Set up Python 3.12
116+
uses: actions/setup-python@v5
117+
with:
118+
python-version: "3.12"
119+
120+
- name: Install tox
121+
run: pip install tox
122+
123+
- name: Run tests
124+
run: tox -e docker-tests-proto3 -- -ra
125+
126+
docker-tests-proto4:
127+
name: docker-tests-proto4
128+
runs-on: ubuntu-latest
129+
steps:
130+
- name: Checkout repo @ SHA - ${{ github.sha }}
131+
uses: actions/checkout@v4
132+
133+
- name: Set up Python 3.12
134+
uses: actions/setup-python@v5
135+
with:
136+
python-version: "3.12"
137+
138+
- name: Install tox
139+
run: pip install tox
140+
141+
- name: Run tests
142+
run: tox -e docker-tests-proto4 -- -ra
143+
144+
public-symbols-check:
145+
name: public-symbols-check
146+
runs-on: ubuntu-latest
147+
steps:
148+
- name: Checkout repo @ SHA - ${{ github.sha }}
149+
uses: actions/checkout@v4
150+
151+
- name: Set up Python 3.12
152+
uses: actions/setup-python@v5
153+
with:
154+
python-version: "3.12"
155+
156+
- name: Install tox
157+
run: pip install tox
158+
159+
- name: Run tests
160+
run: tox -e public-symbols-check -- -ra
161+
162+
shellcheck:
163+
name: shellcheck
164+
runs-on: ubuntu-latest
165+
steps:
166+
- name: Checkout repo @ SHA - ${{ github.sha }}
167+
uses: actions/checkout@v4
168+
169+
- name: Set up Python 3.12
170+
uses: actions/setup-python@v5
171+
with:
172+
python-version: "3.12"
173+
174+
- name: Install tox
175+
run: pip install tox
176+
177+
- name: Run tests
178+
run: tox -e shellcheck -- -ra

.github/workflows/shellcheck.yml

-19
This file was deleted.

tox.ini

+9
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ envlist =
108108
docs
109109
docker-tests-proto{3,4}
110110
public-symbols-check
111+
shellcheck
111112

112113
[testenv]
113114
deps =
@@ -434,3 +435,11 @@ commands_pre =
434435

435436
commands =
436437
python {toxinidir}/.github/workflows/generate_workflows.py
438+
439+
[testenv:shellcheck]
440+
441+
commands_pre =
442+
sudo apt update && sudo apt install --assume-yes shellcheck
443+
444+
commands =
445+
find . -name \*.sh | xargs shellcheck --severity=warning

0 commit comments

Comments
 (0)