@@ -149,10 +149,12 @@ runs:
149
149
with :
150
150
python-version : ${{ inputs.python_version }}
151
151
cache : ' pip' # caching pip dependencies
152
- - if : ${{ inputs.pytest == 'true' }}
152
+
153
+ - if : ${{ inputs.pylint == 'true' }}
154
+ shell : bash
153
155
run : |
154
156
python -m pip install --upgrade pip
155
- python -m pip install pytest pylint
157
+ python -m pip install pylint
156
158
cd "${{ inputs.root }}/${{ inputs.workdir }}"
157
159
python -m flit install || python -m pip install .
158
160
@@ -173,21 +175,26 @@ runs:
173
175
with :
174
176
python-version : ${{ inputs.python_version }}
175
177
cache : ' pip' # caching pip dependencies
178
+
176
179
- if : ${{ inputs.pytest == 'true' }}
180
+ shell : bash
177
181
run : |
178
182
python -m pip install --upgrade pip
179
183
python -m pip install pytest pytest-xdist pytest-cov flit requests_mock
180
184
cd "${{ inputs.root }}/${{ inputs.workdir }}"
181
185
python -m flit install || python -m pip install .
182
186
python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
183
187
184
- shell : bash
185
188
- if : ${{ inputs.pytest == 'true' && inputs.coverage == 'true' }}
186
189
uses : codecov/codecov-action@v3
187
190
with :
188
191
flags : ${{ inputs.flags }}
189
192
190
193
- if : ${{ inputs.pypi_publish == 'true' }}
194
+ shell : bash
195
+ env :
196
+ FLIT_USERNAME : __token__
197
+ FLIT_PASSWORD : ${{ inputs.pypi_password }}
191
198
run : |
192
199
cd "${{ inputs.root }}"
193
200
@@ -196,10 +203,6 @@ runs:
196
203
197
204
sed -i -r 's/\"[0-9]\.[0-9]\.[0-9]+\"/&\"${{ inputs.version_suffix }}\"/g' src/*/__init__.py
198
205
python -m flit publish $repository --repository ${{ inputs.pypi_repo }} --pypirc .pypirc
199
- env :
200
- FLIT_USERNAME : __token__
201
- FLIT_PASSWORD : ${{ inputs.pypi_password }}
202
- shell : bash
203
206
204
207
# Ref: https://haya14busa.github.io/github-action-brandings/
205
208
branding :
0 commit comments