This repository was archived by the owner on Jun 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
62 lines (57 loc) · 1.51 KB
/
github-ci.yml
File metadata and controls
62 lines (57 loc) · 1.51 KB
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
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: ipcl-python_internal
on:
# By default this will run when the activity type is "opened", "synchronize",
# or "reopened".
pull_request:
branches:
- main
- development
push:
branches:
- development
# Manually run this workflow on any specified branch.
workflow_dispatch:
##############
# IceLake CI #
##############
permissions:
contents: read
jobs:
format:
name: Format check
runs-on: [self-hosted, linux, x64, icx, debian]
# Use environment protection (require review)
environment: intel_workflow
steps:
- uses: actions/checkout@v2
# Add local bin for cpplint
- name: Setup
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: pre-commit
run: pre-commit run --all-files
build-and-test:
name: Build and test IPCL-Python extension
needs: [format]
runs-on: [self-hosted, linux, x64, icx, debian]
# Use environment protection (require review)
environment: intel_workflow
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v2
- name: Validate paths
run: |
whoami
echo $HOME
echo $GITHUB_WORKSPACE
echo "Testing from branch:"
echo $GITHUB_REF
pwd
- name: Install IPCL-Python extension
run: python3 setup.py install --user
- name: Run the unit test
run: python3 setup.py test