diff --git a/.github/workflows/pr-receive.yaml b/.github/workflows/pr-receive.yaml index 7fbff6cd..5f2fd43f 100644 --- a/.github/workflows/pr-receive.yaml +++ b/.github/workflows/pr-receive.yaml @@ -1,9 +1,9 @@ name: "Receive Pull Request" -on: - pull_request: - types: - [opened, synchronize, reopened] +# on: +# pull_request: +# types: +# [opened, synchronize, reopened] concurrency: group: ${{ github.ref }} diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 999442ed..cc9d6cf4 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -12,6 +12,7 @@ on: [push, pull_request] env: DEFAULT_BRANCH: "sphinx" + SPHINXBUILD: "uv run sphinx-build" # If these SPHINXOPTS are enabled, then be strict about the # builds and fail on any warnings. #SPHINXOPTS: "-W --keep-going -T" @@ -35,20 +36,19 @@ jobs: fetch-depth: 0 lfs: true - # https://github.com/marketplace/actions/setup-python + # https://github.com/astral-sh/setup-uv # ^-- This gives info on matrix testing. - name: Install Python - uses: actions/setup-python@v4 + uses: astral-sh/setup-uv@v5 with: python-version: '3.11' - cache: 'pip' + enable-cache: true # https://docs.github.com/en/actions/guides/building-and-testing-python#installing-dependencies # ^-- This gives info on installing dependencies with pip - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install -r requirements.txt # Debug - name: Debugging information @@ -70,8 +70,8 @@ jobs: git branch -a git remote -v python -V - pip list --not-required - pip list + uv pip list + uv pip check # Build @@ -100,7 +100,7 @@ jobs: - name: Generate PDF if: ${{ env.GENERATE_PDF == 'true' }} run: | - pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip + uv pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip make pyppeteer mv _build/pyppeteer/*.pdf _build/dirhtml/${PDF_FILENAME}