Merge pull request #153 from collective/petschki-reset-button #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
plone: | |
- "6.0-dev" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nanasess/setup-chromedriver@v2 | |
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }} | |
uses: plone/setup-plone@v2.0.0 | |
with: | |
python-version: ${{ matrix.python }} | |
plone-version: ${{ matrix.plone }} | |
- name: Pip cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/pip | |
**/eggs | |
**/downloads | |
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }} | |
restore-keys: | | |
${{ runner.os }}-cache- | |
- name: Install package | |
run: | | |
make VENV=off install | |
- name: Run Lint | |
run: | | |
make VENV=off lint | |
- name: Start Browser | |
run: | | |
export DISPLAY=:99 | |
chromedriver --url-base=/wd/hub & | |
sudo Xvfb -ac :99 -screen 0 1920x1280x24 > /dev/null 2>&1 & | |
- name: Run tests | |
run: | | |
ROBOT_BROWSER=headlesschrome make VENV=off test-ignore-warnings |