-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (71 loc) · 2.42 KB
/
pull_request.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pull Request
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
plone-version: ["6.0"]
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache eggs
uses: actions/cache@v2
env:
cache-name: cache-eggs
with:
path: ./buildout-cache/eggs
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('setup.*') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}-${{ matrix.plone-version }}
- name: Buildout action
uses: IMIO/plonemeeting.portal.core/actions/buildout/@master
with:
py-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
# - name: code analysis
# run: |
# pre-commit run --all-files
- name: Test
run: |
bin/test
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
plone-version: ["6.0"]
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache eggs
uses: actions/cache@v2
env:
cache-name: cache-eggs
with:
path: ./buildout-cache/eggs
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }} }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}
- name: Buildout action
uses: IMIO/plonemeeting.portal.core/actions/buildout/@master
with:
py-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
- name: Coverage action
uses: IMIO/plonemeeting.portal.core/actions/coverage/@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cobertura
uses: 5monkeys/cobertura-action@v9
with:
path: coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 90