-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit contains the combined work since the september of 2021 by the following contributors (sorted alphabetically): - Ernst Würger <[email protected]> - Martin Lehmann <[email protected]> - Moritz Weber <[email protected]>
- Loading branch information
0 parents
commit 253bfdc
Showing
62 changed files
with
13,205 additions
and
0 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,19 @@ | ||
# SPDX-FileCopyrightText: 2022 Copyright DB Netz AG and the capellambse-context-diagrams contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# “.gitattributes Best Practices - Muhammad Rehan Saeed” {{{ | ||
# <https://rehansaeed.com/gitattributes-best-practices/> | ||
# Set default behavior to automatically normalize line endings. | ||
* text=auto | ||
|
||
# Force batch scripts to always use CRLF line endings so that if a repo is accessed | ||
# in Windows via a file share from Linux, the scripts will work. | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf | ||
|
||
# Force bash scripts to always use LF line endings so that if a repo is accessed | ||
# in Unix via a file share from Windows, the scripts will work. | ||
*.sh text eol=lf | ||
# }}} | ||
|
||
# vim:set fdm=marker: |
Validating CODEOWNERS rules …
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,6 @@ | ||
# SPDX-FileCopyrightText: 2022 Copyright DB Netz AG and the capellambse-context-diagrams contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
* @ewuerger | ||
|
||
/capellambse_context_diagrams/*.js @MoritzWeber0 |
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,78 @@ | ||
# SPDX-FileCopyrightText: 2022 Copyright DB Netz AG and the capellambse-context-diagrams contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: ["*"] | ||
pull_request: [master] | ||
tags: ["v*.*.*"] | ||
|
||
jobs: | ||
test: | ||
name: Test with Python ${{matrix.python_version}} on ${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python_version: ["3.9", "3.10"] | ||
include: | ||
- os: windows-latest | ||
python_version: "3.9" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{matrix.python_version}} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.python_version}} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm -v | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{runner.os}}-pip-${{hashFiles('setup.cfg')}} | ||
restore-keys: | | ||
${{runner.os}}-pip- | ||
${{runner.os}}- | ||
- name: Upgrade Pip | ||
run: |- | ||
python -m pip install -U pip | ||
- name: Install test dependencies | ||
run: |- | ||
python -m pip install '.[test]' | ||
- name: Run unit tests | ||
run: |- | ||
python -m pytest --cov-report=term --cov=capellambse_context_diagrams --rootdir=. | ||
publish: | ||
name: Publish artifacts | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: Install dependencies | ||
run: |- | ||
python -m pip install -U pip | ||
python -m pip install build twine | ||
- name: Build packages | ||
run: |- | ||
python -m build | ||
- name: Verify packages | ||
run: |- | ||
python -m twine check dist/* | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Artifacts | ||
path: "dist/*" | ||
- name: Publish to PyPI (release only) | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: python -m twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --non-interactive dist/* |
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,26 @@ | ||
# SPDX-FileCopyrightText: 2022 Copyright DB Netz AG and the capellambse-context-diagrams contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
|
||
jobs: | ||
documentation: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python runtime | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.5 | ||
- name: Install Python dependencies | ||
run: | | ||
pip install '.[docs]' | ||
- name: Deploy documentation | ||
run: | | ||
mkdocs gh-deploy --force |
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,42 @@ | ||
# SPDX-FileCopyrightText: 2022 Copyright DB Netz AG and the capellambse-context-diagrams contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: ["*"] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: Upgrade pip | ||
run: |- | ||
python -m pip install -U pip | ||
- name: Install pre-commit | ||
run: |- | ||
python -m pip install pre-commit types-docutils | ||
- name: Run Pre-Commit | ||
run: |- | ||
pre-commit run --all-files | ||
pylint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: Upgrade pip | ||
run: |- | ||
python -m pip install -U pip | ||
- name: Install pylint | ||
run: |- | ||
python -m pip install pylint==2.13.9 | ||
- name: Run pylint | ||
run: |- | ||
pylint -dfixme -- capellambse_context_diagrams || exit $(($? & ~24)) |
Oops, something went wrong.