File tree 2 files changed +8
-30
lines changed
2 files changed +8
-30
lines changed Original file line number Diff line number Diff line change 19
19
jobs :
20
20
build :
21
21
timeout-minutes : 120
22
- runs-on : ubuntu-24.04
22
+ runs-on : ${{ matrix.runs-on }}
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
26
26
docker-image-variant :
27
27
- jammy
28
28
- noble
29
+ runs-on :
30
+ - ubuntu-24.04
31
+ - ubuntu-24.04-arm
29
32
steps :
30
33
- uses : actions/checkout@v4
31
34
- name : Set up Python
@@ -39,10 +42,12 @@ jobs:
39
42
pip install -r requirements.txt
40
43
pip install -e .
41
44
- name : Build Docker image
42
- run : bash utils/docker/build.sh --amd64 ${{ matrix.docker-image-variant }} playwright-python:localbuild-${{ matrix.docker-image-variant }}
45
+ run : |
46
+ ARCH="${{ matrix.runs-on == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}"
47
+ bash utils/docker/build.sh --$ARCH ${{ matrix.docker-image-variant }} playwright-python:localbuild-${{ matrix.docker-image-variant }}
43
48
- name : Test
44
49
run : |
45
- CONTAINER_ID="$(docker run --rm -v $(pwd):/root/playwright --name playwright-docker-test --workdir /root/playwright/ -d -t playwright-python:localbuild-${{ matrix.docker-image-variant }} /bin/bash)"
50
+ CONTAINER_ID="$(docker run --rm -e CI - v $(pwd):/root/playwright --name playwright-docker-test --workdir /root/playwright/ -d -t playwright-python:localbuild-${{ matrix.docker-image-variant }} /bin/bash)"
46
51
# Fix permissions for Git inside the container
47
52
docker exec "${CONTAINER_ID}" chown -R root:root /root/playwright
48
53
docker exec "${CONTAINER_ID}" pip install -r local-requirements.txt
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments