Skip to content

Commit c848b3a

Browse files
committed
Deploying to gh-pages from @ 549a69a 🚀
0 parents  commit c848b3a

File tree

608 files changed

+156428
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

608 files changed

+156428
-0
lines changed

.github/workflows/main.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the main branch
7+
on:
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# Run the debug/retail msbuild jobs separately so they can be executed in parallel.
16+
17+
windows-msbuild-debug:
18+
name: Run debug msbuild on Windows
19+
runs-on: windows-2019
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
# Runs multiple commands using the runners shell
25+
- name: Run debug msbuild
26+
shell: cmd
27+
run: |
28+
set Configuration=Debug
29+
scripts\build.windows.cmd
30+
31+
windows-msbuild-release:
32+
name: Run release msbuild on Windows
33+
runs-on: windows-2019
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Run release msbuild
37+
shell: cmd
38+
run: |
39+
set Configuration=Release
40+
scripts\build.windows.cmd
41+
42+
# The licenseheaders check depends on comparing the source tree, so we keep it in a
43+
# separate pipeline to ensure it starts from a clean state.
44+
# For simplicity, we only run this one on ubuntu.
45+
46+
python-licenseheaders-checks:
47+
name: Check for license header comments on python files
48+
runs-on: ubuntu-20.04
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Set up Python
52+
uses: actions/setup-python@v2
53+
with:
54+
python-version: '3.x'
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
pip install licenseheaders
59+
- name: Run licenseheaders tool and check to see if it caused any changes
60+
shell: bash
61+
run: |
62+
scripts/update-python-license-headers.sh
63+
# Note: licenseheaders currently rewrites the line-endings from crlf to lf,
64+
# so we instruct git-diff to ignore those when considering changes.
65+
git --no-pager diff --ignore-cr-at-eol --exit-code
66+
67+
python-checks:
68+
name: Run Python checks
69+
runs-on: ${{ matrix.os }}
70+
strategy:
71+
matrix:
72+
os: [windows-2019, ubuntu-20.04]
73+
# FIXME: MLOS currently fails pylint checks for 3.8
74+
python-version: [3.7] #, 3.8]
75+
steps:
76+
- uses: actions/checkout@v2
77+
- name: Set up Python ${{ matrix.python-version }}
78+
uses: actions/setup-python@v2
79+
with:
80+
python-version: ${{ matrix.python-version }}
81+
- name: Install apt dependencies
82+
if: startsWith(matrix.os, 'ubuntu')
83+
# pip needs some additional libraries on linux:
84+
run: sudo apt -y install build-essential libfreetype-dev unixodbc-dev
85+
- name: Install pip dependencies
86+
run: |
87+
python -m pip install --upgrade pip
88+
pip install pylint
89+
pip install -r source/Mlos.Python/requirements.txt
90+
- name: Run pylint checks (Windows)
91+
if: startsWith(matrix.os, 'windows')
92+
run: scripts\run-python-checks.cmd
93+
- name: Run pylint checks (Linux)
94+
if: startsWith(matrix.os, 'ubuntu')
95+
run: scripts/run-python-checks.sh
96+
- name: Run Python unit tests (Windows)
97+
if: startsWith(matrix.os, 'windows')
98+
run: scripts\run-python-tests.cmd
99+
- name: Run Python unit tests (Linux)
100+
if: startsWith(matrix.os, 'ubuntu')
101+
run: scripts/run-python-tests.sh

.nojekyll

Whitespace-only changes.

_images/coverage.svg

Lines changed: 50 additions & 0 deletions
Loading

_images/tests.svg

Lines changed: 50 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)