diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 5bfe95e1..b33b4b09 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 4ab12c8a..dc7b9110 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 da5696e2..62fb01da 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.pyc build dist +venv site !.git*