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