26
26
with :
27
27
python-version : ${{ matrix.python }}
28
28
cache : pip
29
- - name : without optional dependencies
29
+ - name : without optional dependencies and without pyyaml
30
30
run : |
31
31
pip install .[coverage]
32
+ pip uninstall -y pyyaml types-PyYAML
32
33
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
33
34
mv coverage.xml coverage_py${{ matrix.python }}_bare.xml
34
35
mv junit.xml junit_py${{ matrix.python }}_bare.xml
58
59
strategy :
59
60
fail-fast : false
60
61
matrix :
61
- python : [3.8, 3. 9, "3.10", 3.11, 3.12, 3.13]
62
+ python : [3.9, "3.10", 3.11, 3.12, 3.13]
62
63
steps :
63
64
- uses : actions/checkout@v4
64
65
- uses : actions/setup-python@v5
73
74
strategy :
74
75
fail-fast : false
75
76
matrix :
76
- python : [3.8, "3.10", 3.12]
77
+ python : ["3.10", 3.12]
77
78
steps :
78
79
- uses : actions/checkout@v4
79
80
- uses : actions/setup-python@v5
@@ -127,29 +128,6 @@ jobs:
127
128
name : junit_pydantic
128
129
path : ./junit_py*
129
130
130
- without-pyyaml :
131
- runs-on : ubuntu-latest
132
- steps :
133
- - uses : actions/checkout@v4
134
- - uses : actions/setup-python@v5
135
- with :
136
- python-version : " 3.10"
137
- cache : pip
138
- - run : |
139
- pip install .[test,coverage,all]
140
- pip uninstall -y argcomplete omegaconf pyyaml reconplogger responses ruyaml types-PyYAML
141
- pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
142
- mv coverage.xml coverage_without_pyyaml.xml
143
- mv junit.xml junit_without_pyyaml.xml
144
- - uses : actions/upload-artifact@v4
145
- with :
146
- name : coverage_without_pyyaml
147
- path : ./coverage_without_pyyaml.xml
148
- - uses : actions/upload-artifact@v4
149
- with :
150
- name : junit_without_pyyaml
151
- path : ./junit_without_pyyaml.xml
152
-
153
131
build-package :
154
132
runs-on : ubuntu-latest
155
133
steps :
@@ -208,7 +186,7 @@ jobs:
208
186
- uses : actions/checkout@v4
209
187
- uses : actions/setup-python@v5
210
188
with :
211
- python-version : " 3.10 "
189
+ python-version : " 3.12 "
212
190
cache : pip
213
191
- uses : actions/cache@v4
214
192
with :
@@ -220,7 +198,7 @@ jobs:
220
198
codecov :
221
199
runs-on : ubuntu-latest
222
200
environment : codecov
223
- needs : [linux, pydantic-v1, without-pyyaml ]
201
+ needs : [linux, pydantic-v1]
224
202
steps :
225
203
- uses : actions/checkout@v4
226
204
- uses : actions/download-artifact@v4
@@ -243,7 +221,7 @@ jobs:
243
221
if : |
244
222
(github.event_name == 'push') ||
245
223
(github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork)
246
- needs : [linux, pydantic-v1, without-pyyaml ]
224
+ needs : [linux, pydantic-v1]
247
225
steps :
248
226
- uses : actions/checkout@v4
249
227
with :
@@ -278,7 +256,7 @@ jobs:
278
256
pypi-publish :
279
257
if : startsWith(github.ref, 'refs/tags/v')
280
258
runs-on : ubuntu-latest
281
- needs : [linux, windows, macos, omegaconf, pydantic-v1, without-pyyaml, installed-package, doctest, mypy]
259
+ needs : [linux, windows, macos, omegaconf, pydantic-v1, installed-package, doctest, mypy]
282
260
environment :
283
261
name : pypi
284
262
url : https://pypi.org/p/jsonargparse
0 commit comments