-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPT-841 - Reorganize StartLeft GH workflows and actions
- Loading branch information
1 parent
75d7cca
commit 56bc8b9
Showing
10 changed files
with
113 additions
and
101 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.github/actions/documentation/action.yml → ...tions/install-doc-dependencies/action.yml
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
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,40 @@ | ||
name: Install StartLeft | ||
description: 'Install StartLeft' | ||
inputs: | ||
python-version: | ||
description: 'Python Version' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Update pip version to 23.0.1 | ||
run: python -m pip install --upgrade pip==23.0.1 | ||
shell: bash | ||
|
||
- name: Setup Graphviz | ||
uses: ts-graphviz/setup-graphviz@55fcdfa9328aed658432c22011bec2873cd8e69f # Securely point to hash commit for v1 | ||
|
||
- name: Configure Graphviz in Windows | ||
if: runner.os == 'Windows' | ||
shell: bash | ||
run: | | ||
pip install --global-option=build_ext --global-option="-IC:\Program files\Graphviz\include" --global-option="-LC:\Program files\Graphviz\lib" pygraphviz==1.10 | ||
echo "C:\Program Files\Graphviz\bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: pip install -e ".[setup,test]" | ||
shell: bash | ||
|
||
# This step MUST be after the general installation of StartLeft | ||
- name: Install libmagic in Windows | ||
if: runner.os == 'Windows' | ||
run: pip install python-magic-bin | ||
shell: bash | ||
|
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
name: Documentation Check | ||
name: documentation-check | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
|
||
check-documentation: | ||
name: Documentation Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the project from Git | ||
uses: actions/checkout@v3 | ||
|
||
- name: Config documentation environment | ||
uses: ./.github/actions/documentation | ||
uses: ./.github/actions/install-doc-dependencies | ||
|
||
- name: Check doc build | ||
run: mkdocs build |
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
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,28 @@ | ||
# This workflow will perform a QA test | ||
# Including: | ||
# - sonarcloud | ||
# - test | ||
|
||
name: qa | ||
|
||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
sonar: | ||
name: SonarCloud Analysis | ||
uses: ./.github/workflows/sonar.yml | ||
with: | ||
python-version: "3.8" | ||
secrets: inherit | ||
test: | ||
name: StartLeft Tests | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest ] | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
uses: ./.github/workflows/test.yml | ||
with: | ||
os: ${{ matrix.os }} | ||
python-version: ${{ matrix.python-version }} |
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
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
This file was deleted.
Oops, something went wrong.
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
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