-
Notifications
You must be signed in to change notification settings - Fork 1
114 lines (93 loc) · 2.62 KB
/
coverage-top.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Coverage Top-level
# Run:
#
# - Every month. Scheduling helps keep drift/issues with updates
# to runners at bay.
# - On pushes.
#
on:
push:
paths:
- 'sierra/**'
schedule:
- cron: '0 0 1 * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# 2024/08/27: We don't test the core with OSX, because if it works on linux,
# it should work on OSX. Plus, the plugin tests utilize a lot of "core"
# functionality, it the core is already largely tested on OSX via that
# route. Plugins are another story, and are explicitly tested on OSX where
# feasible.
core-ci-ubuntu-2004:
uses: ./.github/workflows/core.yml
secrets: inherit
with:
os: ubuntu-20.04
core-ci-ubuntu-2204:
uses: ./.github/workflows/core.yml
secrets: inherit
with:
os: ubuntu-22.04
plugin-ci:
uses: ./.github/workflows/plugin.yml
secrets: inherit
unit-tests:
uses: ./.github/workflows/unit-tests.yml
secrets: inherit
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
needs:
- core-ci-ubuntu-2004
- core-ci-ubuntu-2204
- plugin-ci
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/publish
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
testpypi-token: ${{ secrets.TEST_PYPI_API_TOKEN }}
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
needs:
- core-ci-ubuntu-2004
- plugin-ci
- unit-tests
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/sierra-setup
- uses: actions/download-artifact@v4
- name: Generate coverage report
run: |
# ls -al . || true
# ls -al ci-*-Linux-${{ matrix.python-version }}-coverage/.* || true
# ls -al ci-*-Linux-${{ matrix.python-version }}-coverage/* || true
coverage \
combine \
$(find . -name "ci-*-Linux-${{ matrix.python-version }}-coverage*")
coverage report --fail-under=80
coverage xml
- uses: actions/upload-artifact@v3
with:
name: ci-integration-coverage
path: .coverage
- uses: actions/upload-artifact@v3
with:
name: ci-integration-coverage-xml
path: coverage.xml
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
coveralls