@@ -186,8 +186,8 @@ compliance, and so for strict builds we pre-generate regl shader code here.
186186
187187## Testing
188188
189- Both jasmine and image tests are run on
190- [ CircleCI ] ( https://circleci .com/gh/ plotly/plotly.js ) on every push to this
189+ Both Jasmine and image tests are run on
190+ [ GitHub Actions ] ( https://github .com/plotly/plotly.js/actions/workflows/ci.yml ) on every push to this
191191repo.
192192
193193### Jasmine tests
@@ -240,30 +240,31 @@ npm run test-jasmine -- --info
240240```
241241
242242### Draft new baselines
243- #### With docker:
244- > If you prefer using docker each time you need to
243+
244+ #### With Docker:
245245``` sh
246- docker run -it -v " $( pwd) " :/plotly.js circleci/python:3.8.9 bash
247- # then inside the docker
248- cd plotly.js
249- sudo bash .circleci/env_image.sh
246+ docker run -it -v " $( pwd) " :/plotly.js python:3.12 bash
247+ # Then inside the container
248+ cd /plotly.js
249+ pip install uv
250+ bash .github/scripts/env_image.sh
250251```
251252
252- #### Without docker:
253- > Otherwise you may need to install ` python 3.8 `
254- Then upgrade ` pip ` if needed
253+ #### Without Docker:
254+ Ensure you have Python 3.12+ and [ ` uv ` ] ( https://docs.astral.sh/uv/ ) installed.
255+
256+ To install required fonts and tools, run the [ setup script] ( https://github.com/plotly/plotly.js/blob/master/.github/scripts/env_image.sh ) :
255257``` sh
256- python3 -m pip install --upgrade pip
258+ bash .github/scripts/env_image.sh
257259```
258260
259- To install required fonts and tools see this [ shell script ] ( https://github.com/plotly/plotly.js/blob/master/.circleci/env_image.sh ) .
261+ #### Scripts to generate/update new baselines with/without Docker:
260262
261- #### Scripts to generate/update new baselines with/without docker:
262263``` sh
263264python3 test/image/make_baseline.py = mock_1 mock_2
264265```
265266
266- > Alternatively using npm & node.js (which are not available in the python docker by default)
267+ Alternatively, you can use Node:
267268
268269``` sh
269270npm run baseline mock_1 mock_2
@@ -287,10 +288,11 @@ If you added new mocks to test/image/mocks folder, to generate draft baselines r
287288``` sh
288289python3 test/image/make_baseline.py = mockFilename1 mockFilename2
289290```
291+
290292Then commit the new baselines and push.
291- Please note that image pixel comparison tests run using circleci/python:3.8.9 docker container .
293+ Please note that image pixel comparison tests run on ` ubuntu-latest ` in GitHub Actions .
292294Therefore the final baselines may need updates.
293- This could simply be done by downloading the ` baselines.tar ` stored in the ` ARTIFACTS ` tab of ` test-baselines ` job (if the test failed) .
295+ This could simply be done by downloading the baseline images from the ** Artifacts ** section of the ` test-baselines ` job in the failed workflow run .
294296
295297### Using the developer console in karma to write/debug jasmine tests
296298
@@ -390,4 +392,3 @@ Other methods used by some trace modules:
390392## Coding style
391393
392394Check if OK with ` npm run lint `
393-
0 commit comments