55 branches :
66 - master
77
8- # schedule:
9- # - cron: '0 18 * * *' # Run daily at 14 :00 UTC
8+ schedule :
9+ - cron : ' 0 18 * * *' # Run daily at 18 :00 UTC
1010
1111 pull_request :
1212
@@ -19,12 +19,12 @@ jobs:
1919 if : github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'pytest-dev/pytest-selenium')
2020 runs-on : ubuntu-latest
2121 steps :
22- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
2323
2424 - name : Set up Python
25- uses : actions/setup-python@v4
25+ uses : actions/setup-python@v5
2626 with :
27- python-version : " 3.10 "
27+ python-version : " 3.12 "
2828
2929 - name : Install dependencies
3030 run : |
@@ -35,28 +35,20 @@ jobs:
3535 run : tox -e linting
3636
3737 test :
38- name : ubuntu-latest - ${{ matrix.tox-env || matrix.python-version }}
38+ name : ubuntu-latest - ${{ matrix.tox-env }}
3939 runs-on : ubuntu-latest
4040 strategy :
4141 fail-fast : false
4242 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"]
5244
5345 steps :
54- - uses : actions/checkout@v3
46+ - uses : actions/checkout@v4
5547
5648 - name : Set up python
57- uses : actions/setup-python@v4
49+ uses : actions/setup-python@v5
5850 with :
59- python-version : ${{ matrix.python-version }}
51+ python-version : ${{ matrix.tox-env == 'devel' && 3.12 || matrix.tox-env }} # default is for devel
6052
6153 - name : Install tox
6254 run : |
@@ -67,43 +59,32 @@ jobs:
6759 run : docker/start
6860
6961 - name : Cache tox environments
70- uses : actions/cache@v3
62+ uses : actions/cache@v4
7163 with :
7264 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') }}
7466 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 }}-
8768
8869 - name : Test
89- run : tox -e " ${{ env .tox }}"
70+ run : tox -e ${{ matrix .tox-env }}
9071
9172 - name : Archive report.html
9273 if : failure()
93- uses : actions/upload-artifact@v1
74+ uses : actions/upload-artifact@v4
9475 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
9778
9879 docs :
9980 runs-on : ubuntu-latest
10081 steps :
101- - uses : actions/checkout@v3
82+ - uses : actions/checkout@v4
10283
10384 - name : Set up Python
104- uses : actions/setup-python@v4
85+ uses : actions/setup-python@v5
10586 with :
106- python-version : " 3.10 "
87+ python-version : " 3.12 "
10788
10889 - name : Install dependencies
10990 run : |
0 commit comments