From 62cd1e685b746f8bc721b58bf37039658f8fff7c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jan 2025 13:02:00 +0000 Subject: [PATCH] Fix the CI build. --- .github/workflows/deploy-site.yml | 9 +++++++-- .github/workflows/pr-checks.yml | 9 +++++++-- .gitignore | 1 + 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 5bfe95e18..b33b4b098 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -23,7 +23,12 @@ jobs: - name: Install dependencies run: | sudo apt-get install python3-pip python3-setuptools python3-wheel --assume-yes --install-recommends - sudo pip3 install -r requirements.txt . + + - name: Create the Python virtual environment + run: | + python3 -mvenv venv + source ./venv/bin/activate + pip3 install --requirement requirements.txt . - name: Build the docs site run: | diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 4ab12c8a2..dc7b91106 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -5,14 +5,19 @@ on: - workflow_dispatch jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Install dependencies run: | sudo apt-get install python3-pip python3-setuptools python3-wheel --assume-yes --install-recommends - sudo pip3 install -r requirements.txt . + + - name: Create the Python virtual environment + run: | + python3 -mvenv venv + source ./venv/bin/activate + pip3 install --requirement requirements.txt . - name: Check for broken redirects run: ./tools/find-broken-redirects diff --git a/.gitignore b/.gitignore index da5696e22..62fb01da2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.pyc build dist +venv site !.git*