Spaces:
Running
Running
Download .github/workflows/docs.yml from MilesCranmer/PySR: direct link, hf CLI and curl.
- Browser
- Download file 814 Bytes
-
https://huggingface.co/spaces/MilesCranmer/PySR/resolve/a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/.github/workflows/docs.yml
- Command line
-
hf download hf://spaces/MilesCranmer/PySR@a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/.github/workflows/docs.yml
-
curl -L -o docs.yml https://huggingface.co/spaces/MilesCranmer/PySR/resolve/a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/.github/workflows/docs.yml
814 Bytes
| name: docs | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths: | |
| - 'pysr/**' | |
| - '.github/workflows/docs.yml' | |
| - 'docs/**' | |
| - 'setup.py' | |
| - 'README.md' | |
| - 'mkdocs.yml' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Set up Python" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| cache: pip | |
| - name: "Install packages for docs building" | |
| run: pip install -r docs/requirements.txt | |
| - name: "Install PySR" | |
| run: pip install . && python -c 'import pysr' | |
| - name: "Build API docs" | |
| run: cd docs && ./gen_docs.sh | |
| - name: "Deploy documentation" | |
| run: mkdocs gh-deploy --force | |