5
5
branches :
6
6
- master
7
7
8
- # schedule:
9
- # - cron: '0 18 * * *' # Run daily at 14 :00 UTC
8
+ schedule :
9
+ - cron : ' 0 18 * * *' # Run daily at 18 :00 UTC
10
10
11
11
pull_request :
12
12
@@ -19,12 +19,12 @@ jobs:
19
19
if : github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'pytest-dev/pytest-selenium')
20
20
runs-on : ubuntu-latest
21
21
steps :
22
- - uses : actions/checkout@v3
22
+ - uses : actions/checkout@v4
23
23
24
24
- name : Set up Python
25
- uses : actions/setup-python@v4
25
+ uses : actions/setup-python@v5
26
26
with :
27
- python-version : " 3.10 "
27
+ python-version : " 3.12 "
28
28
29
29
- name : Install dependencies
30
30
run : |
@@ -35,28 +35,20 @@ jobs:
35
35
run : tox -e linting
36
36
37
37
test :
38
- name : ubuntu-latest - ${{ matrix.tox-env || matrix.python-version }}
38
+ name : ubuntu-latest - ${{ matrix.tox-env }}
39
39
runs-on : ubuntu-latest
40
40
strategy :
41
41
fail-fast : false
42
42
matrix :
43
- python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
44
- include :
45
- - os : ubuntu-latest
46
- python-version : pypy3.9
47
- tox-env : py3.9
48
-
49
- - os : ubuntu-latest
50
- python-version : 3.12
51
- tox-env : devel
43
+ tox-env : ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10", "devel"]
52
44
53
45
steps :
54
- - uses : actions/checkout@v3
46
+ - uses : actions/checkout@v4
55
47
56
48
- name : Set up python
57
- uses : actions/setup-python@v4
49
+ uses : actions/setup-python@v5
58
50
with :
59
- python-version : ${{ matrix.python-version }}
51
+ python-version : ${{ matrix.tox-env == 'devel' && 3.12 || matrix.tox-env }} # default is for devel
60
52
61
53
- name : Install tox
62
54
run : |
@@ -67,43 +59,32 @@ jobs:
67
59
run : docker/start
68
60
69
61
- name : Cache tox environments
70
- uses : actions/cache@v3
62
+ uses : actions/cache@v4
71
63
with :
72
64
path : .tox
73
- key : tox- ubuntu-latest-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'tox.ini') }}
65
+ key : ubuntu-latest-tox- ${{ matrix.tox-env }}-${{ hashFiles('pyproject.toml', 'tox.ini') }}
74
66
restore-keys : |
75
- tox-ubuntu-latest-${{ matrix.python-version }}-
76
-
77
- - name : Set tox variable
78
- shell : bash
79
- run : |
80
- echo "python-version: ${{ matrix.python-version }}"
81
- echo "tox-env: ${{ matrix.tox-env }}"
82
- if [[ -n "${{ matrix.tox-env }}" ]]; then
83
- echo "tox=${{ matrix.tox-env }}" >> "$GITHUB_ENV"
84
- else
85
- echo "tox=py${{ matrix.python-version }}" >> "$GITHUB_ENV"
86
- fi
67
+ ubuntu-latest-tox-${{ matrix.tox-env }}-
87
68
88
69
- name : Test
89
- run : tox -e " ${{ env .tox }}"
70
+ run : tox -e ${{ matrix .tox-env }}
90
71
91
72
- name : Archive report.html
92
73
if : failure()
93
- uses : actions/upload-artifact@v1
74
+ uses : actions/upload-artifact@v4
94
75
with :
95
- name : report.html. ${{ matrix.os }}-${{ env.tox }}.zip
96
- path : .tox/${{ env .tox }}/log/report.html
76
+ name : report.html- ${{ matrix.tox- env }}.zip
77
+ path : .tox/${{ matrix .tox-env }}/log/report.html
97
78
98
79
docs :
99
80
runs-on : ubuntu-latest
100
81
steps :
101
- - uses : actions/checkout@v3
82
+ - uses : actions/checkout@v4
102
83
103
84
- name : Set up Python
104
- uses : actions/setup-python@v4
85
+ uses : actions/setup-python@v5
105
86
with :
106
- python-version : " 3.10 "
87
+ python-version : " 3.12 "
107
88
108
89
- name : Install dependencies
109
90
run : |
0 commit comments