-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (39 loc) · 1.16 KB
/
test.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
name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Caching
uses: actions/cache@v1.2.0
with:
path: |
eggs
key: cache-Py2.7-Plone4.3
- name: Install venv
run: |
pip install virtualenv
virtualenv -p 2 .
bin/pip install -r requirements.txt
bin/buildout -c test-4.3.x.cfg install copy_ckeditor_code ckeditor pytest
- name: Run unit tests
run: |
bin/pytest
- name: Install Firefox
uses: browser-actions/setup-firefox@latest
- name: Install Geckodriver
uses: browser-actions/setup-geckodriver@latest
with:
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"
- name: Run upgrade tests
run: |
bin/pytest -k "upgrade"