-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.79 KB
/
Copy pathmain.yml
File metadata and controls
64 lines (57 loc) · 1.79 KB
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
name: "Main CI"
on:
push:
workflow_dispatch:
jobs:
config:
name: "Config: Compute values used in workflow"
uses: ./.github/workflows/config.yml
lint:
name: "Backend: Lint"
needs:
- config
uses: plone/meta/.github/workflows/backend-lint.yml@2.x
with:
python-version: ${{ needs.config.outputs.python-version }}
plone-version: ${{ needs.config.outputs.plone-version }}
test:
name: "Backend: Test"
needs:
- config
uses: plone/meta/.github/workflows/backend-pytest.yml@2.x
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
plone-version: ['6.2-latest', '6.1-latest', '6.0-latest']
with:
python-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
coverage:
name: "Backend: Test Coverage"
uses: plone/meta/.github/workflows/backend-pytest-coverage.yml@2.x
needs:
- config
with:
python-version: ${{ needs.config.outputs.python-version }}
plone-version: ${{ needs.config.outputs.plone-version }}
report:
name: "Final report"
if: ${{ always() }}
runs-on: ubuntu-latest
needs:
- config
- lint
- test
- coverage
steps:
- name: Report
shell: bash
run: |
echo '# Workflow Report' >> $GITHUB_STEP_SUMMARY
echo '| Job ID | Conclusion |' >> $GITHUB_STEP_SUMMARY
echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY
echo '| Config | ${{ needs.config.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Lint | ${{ needs.lint.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Test | ${{ needs.test.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Coverage | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY