flake8 #516
Workflow file for this run
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: CI | |
on: | |
push: | |
branches-ignore: | |
- "releases/**" | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
plone: | |
- "6.0-latest" | |
# see testing.py for layer names | |
test_layer: | |
- "IntegrationTesting" | |
# - "AcceptanceTestingPortlet_AjaxDisabled" | |
# - "AcceptanceTestingPortlet_AjaxEnabled" | |
# - "AcceptanceTesting_Tiles" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }} | |
id: setup | |
uses: plone/setup-plone@v2.0.0 | |
with: | |
python-version: ${{ matrix.python }} | |
plone-version: ${{ matrix.plone }} | |
- name: Install package | |
run: | | |
make VENV=off install | |
- name: Run Lint | |
run: | | |
make VENV=off lint | |
- name: Install Chromedriver | |
uses: nanasess/setup-chromedriver@v2 | |
- name: Start Browser | |
run: | | |
export DISPLAY=:99 | |
chromedriver --url-base=/wd/hub & | |
sleep 5 # make sure chromedriver is running | |
sudo Xvfb -ac :99 -screen 0 1920x1280x24 > /dev/null 2>&1 & | |
- name: Run tests | |
run: | | |
VENV=off TEST_LAYER=${{ matrix.test_layer}} ROBOT_BROWSER=headlesschrome make test-layer-ignore-warnings | |
- name: Save Robotframework Log | |
uses: actions/upload-artifact@v3 | |
# safe artifacts only for failing tests | |
if: ${{ failure() }} | |
with: | |
name: robottest-logfiles-${{ matrix.test_layer }}-${{ matrix.plone }}-${{ matrix.python }} | |
path: | | |
test_* | |
robot_* |