|
4 | 4 | js_tests:
|
5 | 5 | runs-on: ubuntu-latest
|
6 | 6 | steps:
|
7 |
| - - name: Set Up Python 3.10.8 |
8 |
| - uses: actions/setup-python@v5 |
9 |
| - with: |
10 |
| - python-version: 3.10.8 |
11 |
| - - name: Use Node.js |
12 |
| - uses: actions/setup-node@v4 |
13 |
| - with: |
14 |
| - node-version: 18 |
15 |
| - - uses: actions/checkout@v4 |
16 |
| - - name: Update pip |
17 |
| - run: | |
18 |
| - pip install -U wheel |
19 |
| - pip install -U setuptools |
20 |
| - python -m pip install -U pip |
21 |
| - - name: Get pip cache dir |
22 |
| - id: pip-cache |
23 |
| - run: | |
24 |
| - echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT |
25 |
| - - name: Pip cache |
26 |
| - uses: actions/cache@v4 |
27 |
| - with: |
28 |
| - path: ${{ steps.pip-cache.outputs.dir }} |
29 |
| - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
30 |
| - restore-keys: | |
31 |
| - ${{ runner.os }}-pip- |
32 |
| - - name: Install package |
33 |
| - run: | |
34 |
| - pip install -e .[docs] |
35 |
| - - name: Install Node dependencies |
36 |
| - run: npm install cypress |
37 |
| - - name: Build Docs |
38 |
| - id: sphinx-build-docs |
39 |
| - run: sphinx-build -a -T -E -j 4 -b html -d /tmp/sphinx_build/doctrees ./docs /tmp/sphinx_build/html |
40 |
| - - name: E2E Cypress Test on Chrome |
41 |
| - uses: cypress-io/github-action@v6 |
42 |
| - with: |
43 |
| - browser: chrome |
44 |
| - config-file: tests/js_test/cypress.config.js |
45 |
| - start: npm start |
46 |
| - # quote the url to be safe against YML parsing surprises |
47 |
| - wait-on: 'http://localhost:8080' |
48 |
| - |
49 |
| - |
| 7 | + - name: Set Up Python 3.10.8 |
| 8 | + uses: actions/setup-python@v5 |
| 9 | + with: |
| 10 | + python-version: 3.10.8 |
| 11 | + - name: Use Node.js |
| 12 | + uses: actions/setup-node@v4 |
| 13 | + with: |
| 14 | + node-version: 18 |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + - name: Update pip |
| 17 | + run: | |
| 18 | + pip install -U wheel |
| 19 | + pip install -U setuptools |
| 20 | + python -m pip install -U pip |
| 21 | + - name: Get pip cache dir |
| 22 | + id: pip-cache |
| 23 | + run: | |
| 24 | + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT |
| 25 | + - name: Pip cache |
| 26 | + uses: actions/cache@v4 |
| 27 | + with: |
| 28 | + path: ${{ steps.pip-cache.outputs.dir }} |
| 29 | + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
| 30 | + restore-keys: | |
| 31 | + ${{ runner.os }}-pip- |
| 32 | + - name: Install package |
| 33 | + run: | |
| 34 | + pip install -e .[docs] |
| 35 | + - name: Install Node dependencies |
| 36 | + run: npm install cypress |
| 37 | + - name: Build Docs |
| 38 | + id: sphinx-build-docs |
| 39 | + run: sphinx-build -a -T -E -j 4 -b html -d /tmp/sphinx_build/doctrees ./docs /tmp/sphinx_build/html |
| 40 | + - name: E2E Cypress Test on Chrome |
| 41 | + uses: cypress-io/github-action@v6 |
| 42 | + with: |
| 43 | + browser: chrome |
| 44 | + config-file: tests/js_test/cypress.config.js |
| 45 | + start: npm start |
| 46 | + # quote the url to be safe against YML parsing surprises |
| 47 | + wait-on: 'http://localhost:8080' |
50 | 48 |
|
0 commit comments