Skip to content

Add unit+integration+graph tests Github action #141

Add unit+integration+graph tests Github action

Add unit+integration+graph tests Github action #141

Workflow file for this run

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