|
5 | 5 |
|
6 | 6 | jobs:
|
7 | 7 | test_python:
|
8 |
| - name: ${{ matrix.name }} |
9 |
| - runs-on: ${{ matrix.os }} |
| 8 | + name: ${{ matrix.python-version }} |
| 9 | + runs-on: ubuntu-latest |
10 | 10 | strategy:
|
11 | 11 | fail-fast: false
|
12 | 12 | matrix:
|
13 | 13 | include:
|
14 |
| - - os: ubuntu-latest |
15 |
| - name: py37-ubuntu |
16 |
| - python-version: 3.7 |
17 |
| - |
18 |
| - - os: windows-latest |
19 |
| - name: py37-windows |
20 |
| - python-version: 3.7 |
| 14 | + - tox-env: "py37" |
| 15 | + python-version: "3.7" |
21 | 16 |
|
22 |
| - - os: macOS-latest |
23 |
| - name: py37-mac |
24 |
| - python-version: 3.7 |
| 17 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 18 | +# - os: windows-latest |
| 19 | +# name: py37-windows |
| 20 | +# python-version: 3.7 |
25 | 21 |
|
26 |
| - - os: ubuntu-latest |
27 |
| - name: py38-ubuntu |
28 |
| - python-version: 3.8 |
| 22 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 23 | +# - os: macOS-latest |
| 24 | +# name: py37-mac |
| 25 | +# python-version: 3.7 |
29 | 26 |
|
30 |
| - - os: windows-latest |
31 |
| - name: py38-windows |
32 |
| - python-version: 3.8 |
| 27 | + - tox-env: "py38" |
| 28 | + python-version: "3.8" |
33 | 29 |
|
34 |
| - - os: macOS-latest |
35 |
| - name: py38-mac |
36 |
| - python-version: 3.8 |
| 30 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 31 | +# - os: windows-latest |
| 32 | +# name: py38-windows |
| 33 | +# python-version: 3.8 |
37 | 34 |
|
38 |
| - - os: ubuntu-latest |
39 |
| - name: py39-ubuntu |
40 |
| - python-version: 3.9 |
| 35 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 36 | +# - os: macOS-latest |
| 37 | +# name: py38-mac |
| 38 | +# python-version: 3.8 |
41 | 39 |
|
42 |
| - - os: windows-latest |
43 |
| - name: py39-windows |
44 |
| - python-version: 3.9 |
| 40 | + - tox-env: "py39" |
| 41 | + python-version: "3.9" |
45 | 42 |
|
46 |
| - - os: macOS-latest |
47 |
| - name: py39-mac |
48 |
| - python-version: 3.9 |
| 43 | + - tox-env: "py310" |
| 44 | + python-version: "3.10" |
49 | 45 |
|
50 |
| - - os: ubuntu-latest |
51 |
| - name: py310-ubuntu |
52 |
| - python-version: '3.10' |
| 46 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 47 | +# - os: windows-latest |
| 48 | +# name: py39-windows |
| 49 | +# python-version: 3.9 |
53 | 50 |
|
54 |
| - - os: windows-latest |
55 |
| - name: py310-windows |
56 |
| - python-version: '3.10' |
| 51 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 52 | +# - os: macOS-latest |
| 53 | +# name: py39-mac |
| 54 | +# python-version: 3.9 |
57 | 55 |
|
58 |
| - - os: macOS-latest |
59 |
| - name: py310-mac |
60 |
| - python-version: '3.10' |
| 56 | + - tox-env: "pypy3" |
| 57 | + python-version: "pypy3.9" |
| 58 | + skip-coverage: true |
61 | 59 |
|
62 |
| - - os: ubuntu-latest |
63 |
| - name: pypy3-ubuntu |
64 |
| - python-version: pypy-3.8 |
65 |
| - |
66 |
| - - os: windows-latest |
67 |
| - name: pypy3-windows |
68 |
| - python-version: pypy-3.8 |
| 60 | +# https://github.com/pytest-dev/pytest-html/issues/585 |
| 61 | +# - os: windows-latest |
| 62 | +# name: pypy3-windows |
| 63 | +# python-version: pypy3 |
69 | 64 |
|
70 | 65 | # https://github.com/pytest-dev/pytest-html/issues/482
|
71 |
| - - os: macOS-latest |
72 |
| - name: pypy3-mac |
73 |
| - python-version: pypy-3.8 |
| 66 | +# - os: macOS-latest |
| 67 | +# name: pypy3-mac |
| 68 | +# python-version: pypy-3.8 |
74 | 69 |
|
75 |
| - - os: ubuntu-latest |
76 |
| - name: devel-ubuntu |
77 |
| - python-version: 3.9 |
| 70 | + - tox-env: "devel" |
| 71 | + python-version: "3.11-dev" |
78 | 72 |
|
79 | 73 | steps:
|
80 | 74 | - name: Set Newline Behavior
|
81 |
| - run : git config --global core.autocrlf false |
| 75 | + run: git config --global core.autocrlf false |
| 76 | + |
82 | 77 | - uses: actions/checkout@v3
|
| 78 | + |
| 79 | + - name: Start chrome |
| 80 | + run: ./start |
| 81 | + |
| 82 | + - name: Use Node.js |
| 83 | + uses: actions/setup-node@v3 |
83 | 84 | with:
|
84 |
| - fetch-depth: 0 |
| 85 | + node-version: '16.x' |
| 86 | + |
| 87 | + - name: Install Dependencies |
| 88 | + run: npm ci |
| 89 | + |
| 90 | + - name: Build app |
| 91 | + run: npm run build:ci |
| 92 | + |
85 | 93 | - name: Set up Python
|
86 |
| - uses: actions/setup-python@v3 |
| 94 | + uses: actions/setup-python@v4 |
87 | 95 | with:
|
88 |
| - python-version: ${{ matrix['python-version'] }} |
| 96 | + python-version: ${{ matrix.python-version }} |
| 97 | + |
89 | 98 | - name: Install tox
|
90 | 99 | run: python -m pip install --upgrade tox
|
91 |
| - - name: Get Tox Environment Name From Matrix Name |
92 |
| - uses: rishabhgupta/split-by@v1 |
93 |
| - id: split-matrix-name |
94 |
| - with: |
95 |
| - string: '${{ matrix.name }}' |
96 |
| - split-by: '-' |
| 100 | + |
97 | 101 | - name: Test with coverage
|
98 |
| - if: "! contains(matrix.name, 'pypy3')" |
99 |
| - run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}}-cov |
| 102 | + if: ${{ ! matrix.skip-coverage }} |
| 103 | + run: tox -e ${{ matrix.tox-env }}-cov |
| 104 | + |
100 | 105 | - name: Test without coverage
|
101 |
| - if: "contains(matrix.name, 'pypy3')" |
102 |
| - run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}} |
103 |
| - |
104 |
| - # TODO: https://github.com/pytest-dev/pytest-html/issues/481 |
105 |
| -# - name: Upload coverage to codecov |
106 |
| -# if: github.event.schedule == '' |
107 |
| -# uses: codecov/codecov-action@v2 |
108 |
| -# with: |
109 |
| -# fail_ci_if_error: true |
110 |
| -# file: ./coverage.xml |
111 |
| -# flags: tests |
112 |
| -# name: ${{ matrix.py }} - ${{ matrix.os }} |
113 |
| -# verbose: true |
| 106 | + if: ${{ matrix.skip-coverage }} |
| 107 | + run: tox -e ${{ matrix.tox-env }} |
| 108 | + |
| 109 | + # TODO: https://github.com/pytest-dev/pytest-html/issues/481 |
| 110 | + - name: Upload coverage to codecov |
| 111 | + if: >- |
| 112 | + ${{ |
| 113 | + ! github.event.schedule && |
| 114 | + ! matrix.skip-coverage && |
| 115 | + github.repository_owner == 'pytest-dev' |
| 116 | + }} |
| 117 | + uses: codecov/codecov-action@v3 |
| 118 | + with: |
| 119 | + fail_ci_if_error: true |
| 120 | + files: ./coverage.xml |
| 121 | + flags: tests |
| 122 | + name: ${{ matrix.tox-env }} |
| 123 | + verbose: true |
114 | 124 |
|
115 | 125 | test_javascript:
|
116 |
| - name: grunt |
| 126 | + name: mocha |
117 | 127 | runs-on: ubuntu-latest
|
118 | 128 | steps:
|
119 | 129 | - uses: actions/checkout@v3
|
120 |
| - - name: Use Node.js ${{ matrix.node-version }} |
| 130 | + - name: Use Node.js |
121 | 131 | uses: actions/setup-node@v3
|
122 | 132 | with:
|
123 |
| - node-version: '12.x' |
| 133 | + node-version: '16.x' |
124 | 134 | - name: Install Dependencies
|
125 |
| - run: npm install |
126 |
| - - name: QUnit Tests |
127 |
| - run: npm test |
| 135 | + run: npm ci |
| 136 | + - name: Mocha Tests |
| 137 | + run: npm run unit |
0 commit comments