LOBSTER Release 1.0.3 (#574) #433
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: Deploy static content to Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-24.04 | |
| # The 'docs' target requires graphviz, but the system tests require that graphviz is NOT installed | |
| # So the order is important: 1.) coverage 2.) install graphviz 3.) docs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.9" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements_dev.txt | |
| - name: Building code coverage report | |
| run: | | |
| make system-tests unit-tests | |
| make coverage-system | |
| make coverage-unit | |
| mv htmlcov-system docs | |
| mv htmlcov-unit docs | |
| - name: Install graphviz | |
| run: | | |
| sudo apt-get install -y graphviz | |
| echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH | |
| - name: Generate docs | |
| run: | | |
| make docs | |
| env: | |
| PYTHONPATH: "." | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: 'docs' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |