-
Notifications
You must be signed in to change notification settings - Fork 77
55 lines (48 loc) · 1.37 KB
/
main.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "**"
concurrency:
group: tests-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
Unit-Tests:
uses: ./.github/workflows/tests.yml
with:
test-type: "Unit"
ignored-file-paths: "demisto_sdk/commands/init/templates,demisto_sdk/tests/integration_tests,demisto_sdk/commands/content_graph,tests_end_to_end"
groups: '["1", "2", "3", "4", "5"]'
splits: "5"
Integration-Tests:
uses: ./.github/workflows/tests.yml
with:
test-type: "Integration"
file-path: "demisto_sdk/tests/integration_tests"
Graph-Tests:
uses: ./.github/workflows/tests.yml
with:
test-type: "Graph"
file-path: "demisto_sdk/commands/content_graph"
coverage:
needs: [unit-tests, integration-tests, graph-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Download all artifacts
uses: actions/download-artifact@v2
- name: Run coverage
run: |
pip install coverage
coverage combine **/.coverage
coverage report
coverage xml
- name: Coveralls
uses: coverallsapp/github-action@v2