-
-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (62 loc) · 2.16 KB
/
pytest-html.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
name: pytest-html
# This was added to record timing from the pytest-json-report extension, in an
# attempt to figure out why coverage is so slow on PyPy
# See https://github.com/pytest-dev/pytest-html/pull/518
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/pytest-html.yml'
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
- cron: "0 2 * * 0"
jobs:
test_python:
name: pytest-html ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: pypy3.10-nightly-ubuntu
toxname: pypy3
python-version: pypy-3.10-nightly
- os: windows-latest
name: pypy3.9-nightly-windows
toxname: pypy3
python-version: pypy-3.9-nightly
steps:
- name: Set Newline Behavior
run : git config --global core.autocrlf false
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: '20.x'
- uses: actions/[email protected]
with:
repository: pytest-dev/pytest-html
fetch-depth: 0
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix['python-version'] }}
- name: Show compiler version and locale
run: |
echo gcc --version
gcc --version
echo "-----------"
echo locale
locale
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
- name: Install tox
run: python -m pip install --upgrade pip tox
- name: Test with tox
run: |
python -m tox -e ${{ matrix.toxname }} -- testing/test_unit.py