forked from intel/ittapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from saurabhkatiyar91/cicd_workflow
ci workflow for itt python
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Ci workflow to be triggered for every pull-request and push | ||
name: "CI ITT PYTHON" | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["master"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
runs-on: ['${{matrix.os}}'] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: install ittapi | ||
run: | | ||
cd python | ||
python3 -m pip install . | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
runs-on: ['${{matrix.os}}'] | ||
needs: build | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: run unit-test | ||
run: | | ||
cd python | ||
python3 -m unittest discover -s utest -t utest |