-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflows): Add Required Workflows for Build, Code Quality and C…
…ompatibility Signed-off-by: Kaushlendra Pratap <[email protected]>
- Loading branch information
1 parent
f5b71ab
commit 831e05f
Showing
6 changed files
with
150 additions
and
11 deletions.
There are no files selected for viewing
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,39 @@ | ||
# SPDX-FileCopyrightText: © 2025 Siemens AG | ||
# SPDX-FileCopyrightText: © Kaushlendra Pratap Singh <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1-only | ||
|
||
name: Build Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install build tools | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install setuptools wheel | ||
- name: Build package | ||
run: | | ||
python3 setup.py sdist bdist_wheel | ||
working-directory: ./Safaa | ||
|
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,36 @@ | ||
# SPDX-FileCopyrightText: © 2021 Siemens AG | ||
# SPDX-FileCopyrightText: © Kaushlendra Pratap Singh <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1-only | ||
name: Code Quality | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: Run flake8 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
|
||
- name: Install flake8 | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install flake8 | ||
- name: Run flake8 | ||
run: | | ||
flake8 --max-line-length=120 . | ||
working-directory: ./Safaa |
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,39 @@ | ||
# SPDX-FileCopyrightText: © 2025 Siemens AG | ||
# SPDX-FileCopyrightText: © Kaushlendra Pratap Singh <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1-only | ||
|
||
name: Compatibility Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
name: Test on Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
## Allowed Python versions https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#python | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m ensurepip --upgrade | ||
python3 -m pip install --upgrade pip setuptools wheel | ||
python3 setup.py install | ||
working-directory: ./Safaa |
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
4 changes: 4 additions & 0 deletions
4
Safaa/src/safaa/models/false_positive_detection_model_sgd.pkl.license
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,4 @@ | ||
# SPDX-FileCopyrightText: © 2025 Siemens AG | ||
# SPDX-FileCopyrightText: © Kaushlendra Pratap Singh <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1-only |