From e2fc7ebe1891515534cc6d94d8da056c9e4266ef Mon Sep 17 00:00:00 2001 From: Amrit Krishnan Date: Mon, 24 Nov 2025 16:04:49 -0500 Subject: [PATCH 1/3] Update uv version to 0.9.11 in all workflow files --- .github/workflows/code_checks.yml | 2 +- .github/workflows/docs.yml | 100 ++++++++++++++++++++++++++++++ .github/workflows/publish.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- 4 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index d9fbf7c..83bd267 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -35,7 +35,7 @@ jobs: uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 with: # Install a specific version of uv. - version: "0.7.6" + version: "0.9.11" enable-cache: true - name: "Set up Python" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..9258361 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,100 @@ +name: docs +permissions: + contents: write + pull-requests: write + +on: + push: + branches: + - main + paths: + - .pre-commit-config.yaml + - .github/workflows/docs.yml + - '**.py' + - '**.ipynb' + - '**.html' + - '**.js' + - '**.md' + - uv.lock + - pyproject.toml + - mkdocs.yml + - '**.png' + - '**.svg' + pull_request: + branches: + - main + paths: + - .pre-commit-config.yaml + - .github/workflows/docs.yml + - '**.py' + - '**.ipynb' + - '**.js' + - '**.html' + - uv.lock + - pyproject.toml + - '**.md' + - mkdocs.yml + - '**.png' + - '**.svg' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4.2.2 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + version: "0.9.11" + enable-cache: true + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: Install the project + run: uv sync --all-extras --group docs + + - name: Build docs + run: uv run mkdocs build + + - name: Create .nojekyll file + run: touch site/.nojekyll + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: docs-site + path: site/ + retention-days: 1 + + deploy: + needs: build + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4.2.2 + + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: docs-site + path: site + + - name: Ensure .nojekyll exists + run: touch site/.nojekyll + + - name: Deploy to Github pages + uses: JamesIves/github-pages-deploy-action@v4.7.3 + with: + branch: gh-pages + folder: site diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 316367b..fddb167 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 with: # Install a specific version of uv. - version: "0.7.6" + version: "0.9.11" enable-cache: true - name: "Set up Python" diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index b90a001..c11918d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -43,7 +43,7 @@ jobs: uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 with: # Install a specific version of uv. - version: "0.7.6" + version: "0.9.11" enable-cache: true - name: "Set up Python" From 4ff8e9c67673f109ae901bb5797a8a5a78c8f1cd Mon Sep 17 00:00:00 2001 From: Amrit Krishnan Date: Mon, 24 Nov 2025 16:07:09 -0500 Subject: [PATCH 2/3] Remove --group docs flag from docs workflow --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9258361..04dd1ae 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -56,7 +56,7 @@ jobs: python-version-file: ".python-version" - name: Install the project - run: uv sync --all-extras --group docs + run: uv sync --all-extras - name: Build docs run: uv run mkdocs build From d88a61b6bb98cbc70caf3064162b6f7c89fd0a4f Mon Sep 17 00:00:00 2001 From: Amrit Krishnan Date: Mon, 24 Nov 2025 16:17:53 -0500 Subject: [PATCH 3/3] Remove docs workflow --- .github/workflows/docs.yml | 100 ------------------------------------- 1 file changed, 100 deletions(-) delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 04dd1ae..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: docs -permissions: - contents: write - pull-requests: write - -on: - push: - branches: - - main - paths: - - .pre-commit-config.yaml - - .github/workflows/docs.yml - - '**.py' - - '**.ipynb' - - '**.html' - - '**.js' - - '**.md' - - uv.lock - - pyproject.toml - - mkdocs.yml - - '**.png' - - '**.svg' - pull_request: - branches: - - main - paths: - - .pre-commit-config.yaml - - .github/workflows/docs.yml - - '**.py' - - '**.ipynb' - - '**.js' - - '**.html' - - uv.lock - - pyproject.toml - - '**.md' - - mkdocs.yml - - '**.png' - - '**.svg' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4.2.2 - - - name: Install uv - uses: astral-sh/setup-uv@v6 - with: - version: "0.9.11" - enable-cache: true - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version-file: ".python-version" - - - name: Install the project - run: uv sync --all-extras - - - name: Build docs - run: uv run mkdocs build - - - name: Create .nojekyll file - run: touch site/.nojekyll - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: docs-site - path: site/ - retention-days: 1 - - deploy: - needs: build - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4.2.2 - - - name: Configure Git Credentials - run: | - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com - - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: docs-site - path: site - - - name: Ensure .nojekyll exists - run: touch site/.nojekyll - - - name: Deploy to Github pages - uses: JamesIves/github-pages-deploy-action@v4.7.3 - with: - branch: gh-pages - folder: site