Skip to content

Commit

Permalink
Merge pull request #1 from saurabhkatiyar91/ci_workflow
Browse files Browse the repository at this point in the history
added ci workflow
  • Loading branch information
saurabhkatiyar91 authored Jul 30, 2024
2 parents 6ddf038 + 9845473 commit 87d9744
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Ci workflow to be triggered for every pull-request and push
name: "CI"

on:
push:
branches: ["ci_workflow", "master"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["ci_workflow", "master"]

permissions:
contents: read

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: linux
python: /opt/python38/bin/python3
- os: windows
python: C:\Python38\python.exe
runs-on: [self-hosted, '${{matrix.os}}']

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: install ittapi
run:
cd ittapi/python
${{ matrix.python }} -m pip install .

test:
strategy:
fail-fast: false
matrix:
include:
- os: linux
python: /opt/python38/bin/python3
- os: windows
python: C:\Python38\python.exe
runs-on: [self-hosted, '${{matrix.os}}', analyzers-build]
needs: build

steps:
- name: Checkout code
uses: actions/checkout
- name: run unit-test
run:
cd ittapi/python
${{ matrix.python }} -m unittest discover -s utest -t utest

0 comments on commit 87d9744

Please sign in to comment.