Merge pull request #167 from toshihikoyanase/add-pypi-conda-badges #555
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sphinx | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.8 | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install -U pip | |
| pip install --progress-bar off -U .[document] | |
| - name: Output installed packages | |
| run: | | |
| pip freeze --all | |
| - name: Output dependency tree | |
| run: | | |
| pip install pipdeptree | |
| pipdeptree | |
| - name: Build Document | |
| run: | | |
| cd docs | |
| make html | |
| cd ../ | |
| - uses: actions/upload-artifact@v3 | |
| with: | |
| name: built-html | |
| path: | | |
| docs/build/html |