Skip to content

Commit 91cb536

Browse files
committed
Fix the CI build.
1 parent 8d3c5fe commit 91cb536

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/deploy-site.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
environment:
1818
name: github-pages
1919
url: ${{ steps.deployment.outputs.page_url }}
@@ -23,10 +23,16 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
sudo apt-get install python3-pip python3-setuptools python3-wheel --assume-yes --install-recommends
26-
sudo pip3 install -r requirements.txt .
26+
27+
- name: Create the Python virtual environment
28+
run: |
29+
python3 -mvenv venv
30+
source ./venv/bin/activate
31+
pip3 install --requirement requirements.txt .
2732
2833
- name: Build the docs site
2934
run: |
35+
source ./venv/bin/activate
3036
mkdocs build
3137
3238
- name: Upload docs site artifact

.github/workflows/pr-checks.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ on:
55
- workflow_dispatch
66
jobs:
77
build:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111

1212
- name: Install dependencies
1313
run: |
1414
sudo apt-get install python3-pip python3-setuptools python3-wheel --assume-yes --install-recommends
15-
sudo pip3 install -r requirements.txt .
15+
16+
- name: Create the Python virtual environment
17+
run: |
18+
python3 -mvenv venv
19+
source ./venv/bin/activate
20+
pip3 install --requirement requirements.txt .
1621
1722
- name: Check for broken redirects
1823
run: ./tools/find-broken-redirects

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.pyc
55
build
66
dist
7+
venv
78
site
89

910
!.git*

0 commit comments

Comments
 (0)