Skip to content

Branch Coverage

Branch Coverage #1

name: Branch Coverage
on:
workflow_dispatch:
# push:
# branches:
# - gha
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: gha-runners-delib-py2
strategy:
fail-fast: false
matrix:
plone-version: ["4.3"]
steps:
- name: Needed for local development
if: ${{ env.ACT }}
run: echo /home/runner/externals/node20/bin >> $GITHUB_PATH
- name: Launch soffice
run: soffice '--accept=socket,host=0.0.0.0,port=2002;urp;StarOffice.ServiceManager' --nologo --headless --nofirststartwizard --norestore &
shell: bash
- name: Run check
uses: IMIO/gha/plone-package-test-notify@v4
env:
cache-name: cache-eggs
with:
CACHE_KEY: ${{ runner.os }}-build-${{ env.cache-name }}-2.7.18
TEST_COMMAND: coverage run bin/testmc --test-path=src/Products.MeetingCommunes --layer=!ROBOT
INSTALL_DEPENDENCIES_COMMANDS: |
sudo pip2.7 install -r requirements-coverage.txt
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }}
BUILDOUT_CONFIG_FILE: buildout.cfg
- name: Report
run: |
coverage report
coverage xml
shell: bash
- name: Create artifacts
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
retention-days: 90
# - name: Publish to Coveralls
# run: |
# coveralls --service=github
# shell: bash
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}