fix: wire all factor runners into master.py and remove dead code #2
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: Publish Quarto site to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "quarto/**" | |
| - "reports/build_quarto_data.py" | |
| - ".github/workflows/publish.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Render Quarto site | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: 1.9.37 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| # build_quarto_data.py is intentionally self-contained: it depends only on | |
| # the Python standard library and reads JSON files committed under | |
| # quarto/_data/, so we don't need polars / pyarrow / tushare in CI. | |
| - name: Generate factor pages and snippets | |
| run: python -m reports.build_quarto_data | |
| - name: Render Quarto site | |
| working-directory: quarto | |
| run: quarto render | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: quarto/_site | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |