@@ -15,13 +15,13 @@ defaults:
15
15
16
16
jobs :
17
17
18
- lint :
18
+ static :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@v4
22
22
- uses : actions/setup-python@v5
23
23
with :
24
- python-version : 3.8
24
+ python-version : " 3.8"
25
25
cache : ' pip'
26
26
cache-dependency-path : ' pyproject.toml'
27
27
- name : Install Python dependencies
30
30
- name : Run linters
31
31
run : |
32
32
tox -m lint-manual
33
+ - name : Check Manifest
34
+ run : |
33
35
tox -m manifest
36
+ - name : Run compilation
37
+ run : |
38
+ pip install -e .
39
+ python tools/fail_if_no_c.py
40
+ - name : Run typecheck
41
+ run : |
42
+ tox -m typecheck
43
+ - run : |
44
+ sudo apt-get install -y cppcheck
45
+ - run : |
46
+ cppcheck --force bson
47
+ cppcheck pymongo
34
48
35
49
build :
36
50
# supercharge/mongodb-github-action requires containers so we don't test other platforms
@@ -81,28 +95,29 @@ jobs:
81
95
run : |
82
96
tox -m doc-test
83
97
84
- typing :
85
- name : Typing Tests
98
+ docs :
99
+ name : Docs Checks
86
100
runs-on : ubuntu-latest
87
- strategy :
88
- matrix :
89
- python : ["3.7", "3.11"]
90
101
steps :
91
102
- uses : actions/checkout@v4
92
103
- uses : actions/setup-python@v5
93
104
with :
94
- python-version : " ${{matrix.python}}"
95
105
cache : ' pip'
96
106
cache-dependency-path : ' pyproject.toml'
107
+ # Build docs on lowest supported Python for furo
108
+ python-version : ' 3.8'
97
109
- name : Install dependencies
98
110
run : |
99
111
pip install -q tox
100
- - name : Run typecheck
112
+ - name : Check links
101
113
run : |
102
- tox -m typecheck
114
+ tox -m linkcheck
115
+ - name : Build docs
116
+ run : |
117
+ tox -m doc
103
118
104
- docs :
105
- name : Docs Checks
119
+ linkcheck :
120
+ name : Link Check
106
121
runs-on : ubuntu-latest
107
122
steps :
108
123
- uses : actions/checkout@v4
@@ -115,12 +130,29 @@ jobs:
115
130
- name : Install dependencies
116
131
run : |
117
132
pip install -q tox
118
- - name : Check links
133
+ - name : Build docs
119
134
run : |
120
135
tox -m linkcheck
121
- - name : Build docs
136
+
137
+ typing :
138
+ name : Typing Tests
139
+ runs-on : ubuntu-latest
140
+ strategy :
141
+ matrix :
142
+ python : ["3.7", "3.11"]
143
+ steps :
144
+ - uses : actions/checkout@v4
145
+ - uses : actions/setup-python@v5
146
+ with :
147
+ python-version : " ${{matrix.python}}"
148
+ cache : ' pip'
149
+ cache-dependency-path : ' pyproject.toml'
150
+ - name : Install dependencies
122
151
run : |
123
- tox -m doc
152
+ pip install -q tox
153
+ - name : Run typecheck
154
+ run : |
155
+ tox -m typecheck
124
156
125
157
make_sdist :
126
158
runs-on : ubuntu-latest
0 commit comments