|
1 |
| -name: gh |
| 1 | +name: Main |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | create: # is used for publishing to PyPI and TestPyPI
|
|
12 | 12 | - >-
|
13 | 13 | **
|
14 | 14 | pull_request:
|
15 |
| - schedule: |
16 |
| - - cron: 1 0 * * * # Run daily at 0:01 UTC |
17 | 15 |
|
18 | 16 | jobs:
|
19 | 17 | build_docs:
|
20 | 18 | name: Build Docs
|
21 |
| - runs-on: ubuntu-18.04 |
| 19 | + runs-on: ubuntu-latest |
22 | 20 | steps:
|
23 | 21 | - uses: actions/checkout@master
|
24 | 22 | - name: Set up Python
|
25 | 23 | uses: actions/setup-python@v2
|
26 | 24 | with:
|
27 | 25 | python-version: 3.6
|
28 | 26 | - name: Install tox
|
29 |
| - run: | |
30 |
| - python -m pip install --upgrade tox |
| 27 | + run: python -m pip install --upgrade tox |
31 | 28 | - name: Build docs with tox
|
32 |
| - run: | |
33 |
| - python -m tox -e docs |
34 |
| - build_python: |
35 |
| - name: ${{ matrix.name }} |
36 |
| - runs-on: ${{ matrix.os }} |
37 |
| - strategy: |
38 |
| - matrix: |
39 |
| - include: |
40 |
| - - os: ubuntu-18.04 |
41 |
| - name: py36-ubuntu |
42 |
| - python-version: 3.6 |
43 |
| - |
44 |
| - - os: windows-latest |
45 |
| - name: py36-windows |
46 |
| - python-version: 3.6 |
47 |
| - |
48 |
| - - os: macOS-latest |
49 |
| - name: py36-mac |
50 |
| - python-version: 3.6 |
51 |
| - |
52 |
| - - os: ubuntu-18.04 |
53 |
| - name: py37-ubuntu |
54 |
| - python-version: 3.7 |
55 |
| - |
56 |
| - - os: windows-latest |
57 |
| - name: py37-windows |
58 |
| - python-version: 3.7 |
59 |
| - |
60 |
| - - os: macOS-latest |
61 |
| - name: py37-mac |
62 |
| - python-version: 3.7 |
63 |
| - |
64 |
| - - os: ubuntu-18.04 |
65 |
| - name: py38-ubuntu |
66 |
| - python-version: 3.8 |
67 |
| - |
68 |
| - - os: windows-latest |
69 |
| - name: py38-windows |
70 |
| - python-version: 3.8 |
71 |
| - |
72 |
| - - os: macOS-latest |
73 |
| - name: py38-mac |
74 |
| - python-version: 3.8 |
| 29 | + run: python -m tox -e docs |
75 | 30 |
|
76 |
| - - os: ubuntu-18.04 |
77 |
| - name: py39-ubuntu |
78 |
| - python-version: 3.9 |
| 31 | + tests: |
| 32 | + uses: pytest-dev/pytest-html/.github/workflows/tests.yml@master |
79 | 33 |
|
80 |
| - - os: windows-latest |
81 |
| - name: py39-windows |
82 |
| - python-version: 3.9 |
83 |
| - |
84 |
| - - os: macOS-latest |
85 |
| - name: py39-mac |
86 |
| - python-version: 3.9 |
87 |
| - |
88 |
| - - os: ubuntu-18.04 |
89 |
| - name: pypy3-ubuntu |
90 |
| - python-version: pypy3 |
91 |
| - |
92 |
| - - os: windows-latest |
93 |
| - name: pypy3-windows |
94 |
| - python-version: pypy3 |
95 |
| - |
96 |
| - - os: macOS-latest |
97 |
| - name: pypy3-mac |
98 |
| - python-version: pypy3 |
99 |
| - |
100 |
| - - os: ubuntu-18.04 |
101 |
| - name: devel-ubuntu |
102 |
| - python-version: 3.8 |
103 |
| - |
104 |
| - steps: |
105 |
| - - name: Set Newline Behavior |
106 |
| - run : | |
107 |
| - git config --global core.autocrlf false |
108 |
| - - uses: actions/checkout@master |
109 |
| - - name: Set up Python |
110 |
| - uses: actions/setup-python@v2 |
111 |
| - with: |
112 |
| - python-version: ${{ matrix['python-version'] }} |
113 |
| - - name: Install tox |
114 |
| - run: | |
115 |
| - python -m pip install --upgrade tox |
116 |
| - - name: Get Tox Environment Name From Matrix Name |
117 |
| - uses: rishabhgupta/split-by@v1 |
118 |
| - id: split-matrix-name |
119 |
| - with: |
120 |
| - string: '${{ matrix.name }}' |
121 |
| - split-by: '-' |
122 |
| - - name: Test with tox |
123 |
| - run: | |
124 |
| - python -m tox -e ${{ steps.split-matrix-name.outputs._0}}-cov |
125 |
| - - name: Upload coverage to codecov |
126 |
| - uses: codecov/codecov-action@v1 |
127 |
| - with: |
128 |
| - fail_ci_if_error: true |
129 |
| - file: ./coverage.xml |
130 |
| - flags: tests |
131 |
| - name: ${{ matrix.py }} - ${{ matrix.os }} |
132 |
| - verbose: true |
133 |
| - build_javascript: |
134 |
| - name: grunt |
135 |
| - runs-on: ubuntu-18.04 |
136 |
| - steps: |
137 |
| - - uses: actions/checkout@v2 |
138 |
| - - name: Use Node.js ${{ matrix.node-version }} |
139 |
| - uses: actions/setup-node@v1 |
140 |
| - with: |
141 |
| - node-version: '12.x' |
142 |
| - - name: Install Dependencies |
143 |
| - run: | |
144 |
| - npm install |
145 |
| - - name: QUnit Tests |
146 |
| - run: | |
147 |
| - npm test |
148 |
| - env: |
149 |
| - CI: true |
150 |
| - linting: |
151 |
| - name: linting |
152 |
| - runs-on: ubuntu-18.04 |
153 |
| - steps: |
154 |
| - - uses: actions/checkout@master |
155 |
| - - name: Set up Python |
156 |
| - uses: actions/setup-python@v2 |
157 |
| - with: |
158 |
| - python-version: 3.6 |
159 |
| - - name: Install tox |
160 |
| - run: | |
161 |
| - python -m pip install --upgrade tox |
162 |
| - - name: Lint with tox |
163 |
| - run: | |
164 |
| - python -m tox -e linting |
165 | 34 | publish:
|
166 | 35 | name: Publish to PyPI registry
|
167 | 36 | needs:
|
168 |
| - - build_python |
169 |
| - - build_javascript |
| 37 | + - tests |
170 | 38 | runs-on: ubuntu-latest
|
171 |
| - |
172 | 39 | env:
|
173 | 40 | PY_COLORS: 1
|
174 | 41 | TOXENV: packaging
|
|
0 commit comments