@@ -79,17 +79,30 @@ jobs:
7979 - name : Detect installed Playwright version
8080 run : echo "PLAYWRIGHT_VERSION=$(uv pip list --format json | jq -r '.[] | select(.name == "playwright") | .version')" >> $GITHUB_ENV
8181
82- - name : Cache playwright binaries
82+ - name : Cache chrome binaries
83+ uses : actions/cache@v3
84+ with :
85+ path : |
86+ /tmp/google-chrome-stable_current_amd64.deb
87+ key : ${{ runner.os }}-${{ runner.arch }}-chrome-stable
88+
89+ - name : Install Chrome stable binary
90+ run : |
91+ sudo apt-get update -qq \
92+ && sudo curl -o "/tmp/google-chrome-stable_current_amd64.deb" --no-clobber "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" \
93+ && sudo apt-get install -y "/tmp/google-chrome-stable_current_amd64.deb" -f
94+ - run : patchright install chrome --with-deps
95+ # - run: playwright install chrome --with-deps
96+
97+ - name : Cache chromium binaries
8398 uses : actions/cache@v3
8499 with :
85100 path : |
86101 ~/.cache/ms-playwright
87- key : ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-chromium
102+ key : ${{ runner.os }}-${{ runner.arch }}- playwright-${{ env.PLAYWRIGHT_VERSION }}-chromium
88103
89104 - run : playwright install chromium --with-deps
90- - run : playwright install chrome --with-deps
91- - run : patchright install chrome --with-deps
92- - run : patchright install chromium --with-deps
105+ # - run: patchright install chromium --with-deps
93106
94107 - run : pytest tests/ci/${{ matrix.test_filename }}.py
95108
@@ -116,17 +129,30 @@ jobs:
116129 - name : Detect installed Playwright version
117130 run : echo "PLAYWRIGHT_VERSION=$(uv pip list --format json | jq -r '.[] | select(.name == "playwright") | .version')" >> $GITHUB_ENV
118131
119- - name : Cache playwright binaries
132+ - name : Cache chrome binaries
133+ uses : actions/cache@v3
134+ with :
135+ path : |
136+ /tmp/google-chrome-stable_current_amd64.deb
137+ key : ${{ runner.os }}-${{ runner.arch }}-chrome-stable
138+
139+ - name : Install Chrome stable binary
140+ run : |
141+ sudo apt-get update -qq \
142+ && sudo curl -o "/tmp/google-chrome-stable_current_amd64.deb" --no-clobber "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" \
143+ && sudo apt-get install -y "/tmp/google-chrome-stable_current_amd64.deb" -f
144+ - run : patchright install chrome --with-deps
145+ # - run: playwright install chrome --with-deps
146+
147+ - name : Cache chromium binaries
120148 uses : actions/cache@v3
121149 with :
122150 path : |
123151 ~/.cache/ms-playwright
124- key : ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-chromium
152+ key : ${{ runner.os }}-${{ runner.arch }}- playwright-${{ env.PLAYWRIGHT_VERSION }}-chromium
125153
126154 - run : playwright install chromium --with-deps
127- - run : playwright install chrome --with-deps
128- - run : patchright install chrome --with-deps
129- - run : patchright install chromium --with-deps
155+ # - run: patchright install chromium --with-deps
130156
131157 - name : Run agent tasks evaluation and capture score
132158 id : eval
0 commit comments