-
Notifications
You must be signed in to change notification settings - Fork 41
77 lines (62 loc) · 1.93 KB
/
CIRunner.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This workflow Runs CI Tests on the specified directory using the specified
# python version and node version.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
name: Continuous Integration Test Workflow
on:
workflow_call:
inputs:
python-version:
description: 'Python Version to use for CI'
required: true
type: string
node-version:
description: 'Node Version to use for CI'
required: true
type: string
package-src:
description: 'Directory containing package to test'
required: true
type: string
jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
- name: Install pip Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade -e .[dev,docs]
- name: Set up Node ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Install npm Dependencies
run: |
npm install -g [email protected]
npm install -g [email protected]
- name: Run ruff linter
if: success() || failure()
run: ruff check --output-format=github .
- name: Run ruff formatter
if: success() || failure()
run: ruff format --check .
- name: Run markdownlint
if: success() || failure()
run: markdownlint "**/*.md"
- name: Run cspell
if: success() || failure()
run: cspell -c .cspell.json "**/*.py" "**/*.md"
- name: Run mkdocs build
if: success() || failure()
run: mkdocs build --strict
- name: Run basic dev tests
if: success() || failure()
run: python BasicDevTests.py