-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 1.73 KB
/
branch-coverage.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
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"]
services:
soffice:
image: harbor.imio.be/common/libreoffice:7.3
ports:
- 2002:2002
volumes:
- /tmp:/tmp
- /var/tmp:/var/tmp
credentials:
username: ${{ secrets.COMMON_HARBOR_USERNAME }}
password: ${{ secrets.COMMON_HARBOR_PASSWORD }}
steps:
- name: Needed for local development
if: ${{ env.ACT }}
run: echo /home/runner/externals/node20/bin >> $GITHUB_PATH
- 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/test
INSTALL_DEPENDENCIES_COMMANDS: |
sudo pip2.7 install -r requirements-tests.txt
sudo apt-get update
sudo apt-get install -y python3-pip
sudo pip3 install -r requirements-coverage.txt
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }}
#BUILDOUT_CONFIG_FILE: 'test-${{ matrix.plone-version }}.cfg'
BUILDOUT_CONFIG_FILE: buildout.cfg
- name: Report
run: |
coverage report
coverage xml
shell: bash
# - name: Publish to Coveralls
# run: |
# coveralls --service=github
# shell: bash
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}