-
Notifications
You must be signed in to change notification settings - Fork 20
98 lines (98 loc) · 3.26 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
on: [push, pull_request]
name: Tests
jobs:
# instance:
# strategy:
# fail-fast: false
# matrix:
# include:
# - python-version: "2.7"
# plone-version: "5.2"
# os: "ubuntu-20.04"
# - python-version: "3.8"
# plone-version: "5.2"
# os: "ubuntu-latest"
# - python-version: "3.9"
# plone-version: "6.0"
# os: "ubuntu-latest"
# runs-on: ${{ matrix.os }}
# name: ${{ matrix.plone-version }}-${{ matrix.python-version }} start instance
# steps:
# - uses: actions/[email protected]
# - uses: collective/buildout.plonetest/.github/actions/buildout@gha-buildout-action
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# python-version: ${{ matrix.python-version }}
# plone-version: ${{ matrix.plone-version }}
# buildout-parts: "copy_ckeditor_code ckeditor instance"
# - name: Check that instance starts
# run: |
# bin/instance run startup.py
all_tests_27:
strategy:
fail-fast: false
matrix:
config:
- ["plone52-py27", "plone/test-with-tox:5.2-2.7"]
# needs: instance
runs-on: ubuntu-20.04
container:
image: ${{ matrix.config[1] }}
name: ${{ matrix.config[0] }}
steps:
- uses: actions/checkout@v3
- name: Test
run: tox -e ${{ matrix.config[0] }}
all_tests:
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
plone-version: "5.2"
os: "ubuntu-latest"
- python-version: "3.9"
plone-version: "6.0"
os: "ubuntu-latest"
# needs: instance
name: ${{ matrix.plone-version }}-${{ matrix.python-version }} run tests (robot inc)
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: collective/buildout.plonetest/.github/actions/buildout@gha-buildout-action
with:
github-token: ${{ secrets.github-token }}
python-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
buildout-parts: "copy_ckeditor_code ckeditor pytest"
- name: Run unit tests
run: |
bin/pytest
- name: Install Firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: "109.0"
- name: Install Geckodriver
uses: browser-actions/setup-geckodriver@latest
with:
geckodriver-version: "0.32.0"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run robot tests
run: |
ROBOT_BROWSER=headlessFirefox bin/pytest -k "robot and not image2"
ROBOT_BROWSER=headlessFirefox bin/pytest -k "robot and image2"
# test_upgrade:
# needs: all_tests
# name: 5.2-2.7 upgrade
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/[email protected]
# - uses: collective/buildout.plonetest/.github/actions/buildout@gha-buildout-action
# with:
# github-token: ${{ secrets.github-token }}
# python-version: "2.7"
# plone-version: "5.2"
# buildout-parts: "copy_ckeditor_code ckeditor pytest"
# - name: Run upgrade tests
# run: |
# bin/pytest -k "upgrade"