@@ -232,11 +232,9 @@ jobs:
232232 with :
233233 python-version : ${{ env.PYTHON_VERSION }} # Version range or exact version of a Python version to use, using SemVer's version range syntax
234234 architecture : ' x64' # optional x64 or x86. Defaults to x64 if not specified
235- - name : Build rustfst-python
235+ - name : Build rustfst-python and install test tools
236236 run : |
237- pip install pylint==2.6.0 pytest==6.2.5
238- pip install -r rustfst-python/requirements-setup.txt
239- pip install -e rustfst-python
237+ pip install -e ".[tests]"
240238 - name : Test rustfst-python
241239 run : python -m pytest -s --cache-clear --disable-warnings rustfst-python
242240
@@ -255,16 +253,13 @@ jobs:
255253 with :
256254 python-version : ${{ env.PYTHON_VERSION }} # Version range or exact version of a Python version to use, using SemVer's version range syntax
257255 architecture : ' x64' # optional x64 or x86. Defaults to x64 if not specified
258- - name : Build rustfst-python
256+ - name : Build rustfst-python and install docs tools
259257 run : |
260- pip install -r rustfst-python/requirements-setup.txt
261- pip install -e rustfst-python
262- - name : Install mkdocs
263- run : pip install -r rustfst-python/requirements-mkdocs.txt
258+ pip install -e ".[docs]"
264259 - name : Test doc generation
265260 run : |
266261 cd rustfst-python
267- mkdocs build -s
262+ mkdocs build
268263
269264 publish-python-doc :
270265 name : Publish rustfst-python's doc
@@ -290,13 +285,11 @@ jobs:
290285 - uses : actions/setup-python@v5
291286 with :
292287 python-version : ${{ env.PYTHON_VERSION }}
293- - run : pip install -r rustfst-python/requirements-setup.txt
294- - run : pip install -e rustfst-python
295- - run : pip install -r rustfst-python/requirements-mkdocs.txt
288+ - run : pip install -e ".[docs]"
296289 - run : git config user.name ${{ env.GIT_COMMITTER_NAME }}
297290 - run : git config user.email ${{ env.GIT_COMMITTER_EMAIL }}
298291 - run : git fetch origin gh-pages --depth=1
299- - run : cd rustfst-python && mkdocs build -s
292+ - run : cd rustfst-python && mkdocs build
300293 - name : Deploy Doc to latest
301294 if : github.ref == 'refs/heads/main'
302295 run : cd rustfst-python && mike deploy --push latest
0 commit comments