-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.07 KB
/
plone-package.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
name: tests
on:
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
config:
- ["Py3.9-Plone6", "3.9"]
- ["Py3.10-Plone6", "3.10"]
- ["Py3.11-Plone6", "3.11"]
runs-on: ubuntu-latest
name: ${{ matrix.config[0] }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config[1] }}
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/pip
**/eggs
**/downloads
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }}
restore-keys: |
${{ runner.os }}-cache-
- name: Code Analysis
uses: pre-commit/[email protected]
if: ${{ matrix.config[1] == '3.11' }}
- name: Install dependencies
run: |
make
- name: Test
run: |
./bin/coverage run ./bin/test -s recensio.plone
./bin/coverage report --fail-under=1 -i