7474 python -m pip install -r ./css-inline/tests/requirements-test.txt
7575 # Starts the server in background
7676 python ./css-inline/tests/server.py &
77+ shell : bash
7778
7879 - uses : dtolnay/rust-toolchain@stable
7980
@@ -251,6 +252,19 @@ jobs:
251252 cache : yarn
252253 cache-dependency-path : bindings/javascript/yarn.lock
253254
255+ - uses : actions/setup-python@v5
256+ with :
257+ python-version : 3.11
258+ cache : " pip"
259+ cache-dependency-path : " **/requirements-*.txt"
260+
261+ - name : Start background server
262+ run : |
263+ python -m pip install -r ./css-inline/tests/requirements-test.txt
264+ # Starts the server in background
265+ python ./css-inline/tests/server.py &
266+ shell : bash
267+
254268 - name : Install Rust
255269 uses : dtolnay/rust-toolchain@stable
256270 if : ${{ !matrix.settings.docker }}
@@ -343,18 +357,18 @@ jobs:
343357
344358 - name : Test (x86_64-unknown-linux-gnu)
345359 if : matrix.settings.target == 'x86_64-unknown-linux-gnu'
346- run : docker run --rm -v $(pwd):/build -w /build/bindings/javascript node:${{ matrix.node }}-slim yarn test
360+ run : docker run --rm --network host - v $(pwd):/build -w /build/bindings/javascript node:${{ matrix.node }}-slim yarn test
347361
348362 - name : Test (x86_64-unknown-linux-musl)
349363 if : matrix.settings.target == 'x86_64-unknown-linux-musl'
350- run : docker run --rm -v $(pwd):/build -w /build/bindings/javascript node:${{ matrix.node }}-alpine yarn test
364+ run : docker run --rm --network host - v $(pwd):/build -w /build/bindings/javascript node:${{ matrix.node }}-alpine yarn test
351365
352366 - name : Test (aarch64-unknown-linux-gnu)
353367 if : matrix.settings.target == 'aarch64-unknown-linux-gnu'
354368 uses : addnab/docker-run-action@v3
355369 with :
356370 image : node:${{ matrix.node }}-slim
357- options : " --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/bindings/javascript"
371+ options : " --platform linux/arm64 --network host - v ${{ github.workspace }}:/build -w /build/bindings/javascript"
358372 run : |
359373 set -e
360374 yarn test
@@ -364,7 +378,7 @@ jobs:
364378 uses : addnab/docker-run-action@v3
365379 with :
366380 image : node:${{ matrix.node }}-alpine
367- options : " --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/bindings/javascript"
381+ options : " --platform linux/arm64 --network host - v ${{ github.workspace }}:/build -w /build/bindings/javascript"
368382 run : |
369383 set -e
370384 yarn test
@@ -374,7 +388,7 @@ jobs:
374388 uses : addnab/docker-run-action@v3
375389 with :
376390 image : node:${{ matrix.node }}-bullseye-slim
377- options : " --platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build/bindings/javascript"
391+ options : " --platform linux/arm/v7 --network host - v ${{ github.workspace }}:/build -w /build/bindings/javascript"
378392 run : |
379393 set -e
380394 yarn test
@@ -400,6 +414,13 @@ jobs:
400414 cache : " pip"
401415 cache-dependency-path : " **/requirements-*.txt"
402416
417+ - name : Start background server
418+ run : |
419+ python -m pip install -r ./css-inline/tests/requirements-test.txt
420+ # Starts the server in background
421+ python ./css-inline/tests/server.py &
422+ shell : bash
423+
403424 - run : python -m pip install -r requirements/dev.txt
404425 working-directory : ./bindings/python
405426
@@ -426,6 +447,20 @@ jobs:
426447 cargo-cache : true
427448 cache-version : v1
428449 working-directory : ./bindings/ruby
450+
451+ - uses : actions/setup-python@v5
452+ with :
453+ python-version : 3.11
454+ cache : " pip"
455+ cache-dependency-path : " **/requirements-*.txt"
456+
457+ - name : Start background server
458+ run : |
459+ python -m pip install -r ./css-inline/tests/requirements-test.txt
460+ # Starts the server in background
461+ python ./css-inline/tests/server.py &
462+ shell : bash
463+
429464 - run : bundle exec rake test
430465 working-directory : ./bindings/ruby
431466
@@ -530,6 +565,7 @@ jobs:
530565 python -m pip install -r ./css-inline/tests/requirements-test.txt
531566 # Starts the server in background
532567 python ./css-inline/tests/server.py &
568+ shell : bash
533569
534570 - name : Run tests
535571 run : cargo hack llvm-cov --no-report --feature-powerset
0 commit comments