Skip to content

Commit 7444376

Browse files
authored
Initial Contribution (#1)
* Initial Contribution
1 parent 6f54b1b commit 7444376

File tree

235 files changed

+10984
-2
lines changed

Some content is hidden

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

235 files changed

+10984
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve.
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Where**
14+
Indicate the location of the bug (e.g., which component of the SDK, which API call, which command etc.).
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
18+
19+
20+
**Additional context**
21+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Task
3+
about: Suggest a task for this project. This can be any type of work item like for example a feature request.
4+
title: '[Task]'
5+
labels: task
6+
assignees: ''
7+
8+
---
9+
10+
**Is your task related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Examples are "I am always frustrated when [...]", or "I think it is cumbersome to [...]", "There seems to be a better way to [...]"
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you have considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Check New Pull Request
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ '**' ]
8+
9+
jobs:
10+
build:
11+
name: Check if passes all requirements
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
poetry-version: [ 1.1.13 ]
17+
os: [ ubuntu-latest ]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Run image
27+
uses: abatilo/actions-poetry@v2
28+
with:
29+
poetry-version: ${{ matrix.poetry-version }}
30+
31+
- name: build sds-aspect
32+
run: |
33+
cd core/sds-aspect-meta-model-python
34+
poetry install
35+
poetry run download-bamm-release
36+
poetry build
37+
38+
- name: run tests
39+
run: |
40+
cd core/sds-aspect-meta-model-python
41+
poetry run pytest
42+
43+
- name: run MyPy
44+
run: |
45+
cd core/sds-aspect-meta-model-python
46+
poetry run mypy .
47+
48+
- name: run black
49+
uses: psf/black@stable
50+
with:
51+
options: "--check --verbose --line-length=160"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
gh_tagged_release:
10+
name: Create tagged release
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
poetry-version: [ 1.1.13 ]
16+
os: [ ubuntu-latest ]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python 3.10
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: "3.10"
24+
25+
- name: Install poetry ${{ matrix.poetry-version }}
26+
run: |
27+
python -m ensurepip
28+
python -m pip install --upgrade pip
29+
python -m pip install poetry==${{ matrix.poetry-version }}
30+
31+
- name: Set and build sds-aspect project
32+
id: SDS_version
33+
run: |
34+
cd core/sds-aspect-meta-model-python
35+
poetry version ${GITHUB_REF/refs\/tags\/v/}
36+
poetry install
37+
poetry run download-bamm-release
38+
poetry build
39+
echo "SdsVersion=poetry version -s" >> $GITHUB_ENV
40+
echo "::set-output name=SdsVersion::$(poetry version -s)"
41+
42+
- name: Create GitHub release
43+
if: ${{ (!contains( github.ref, 'b' )) }}
44+
uses: svenstaro/upload-release-action@latest
45+
with:
46+
file_glob: true
47+
overwrite: true
48+
prerelease: false
49+
repo_token: ${{ secrets.GITHUB_TOKEN }}
50+
file: core/sds-aspect-meta-model-python/dist/sds-aspect-meta-model-python-${{steps.SDS_version.outputs.SdsVersion}}.tar.gz
51+
tag: ${{steps.SDS_version.outputs.SdsVersion}}
52+
53+
- name: Create GitHub release
54+
if: ${{ (contains( github.ref, 'b' )) }}
55+
uses: svenstaro/upload-release-action@latest
56+
with:
57+
file_glob: true
58+
overwrite: true
59+
prerelease: true
60+
repo_token: ${{ secrets.GITHUB_TOKEN }}
61+
file: core/sds-aspect-meta-model-python/dist/sds-aspect-meta-model-python-${{steps.SDS_version.outputs.SdsVersion}}.tar.gz
62+
tag: ${{steps.SDS_version.outputs.SdsVersion}}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__/
2+
.vscode/
3+
.idea
4+
**/dist
5+
*.egg-info
6+
core/sds-aspect-meta-model-python/sds_aspect_meta_model_python/bamm_aspect_meta_model/bamm/
7+
core/sds-aspect-meta-model-python/poetry.lock

AUTHORS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Authors
2+
3+
The following people have contributed to this repository:
4+
5+
* [Georg Schmidt-Dumont]([email protected])
6+
* [Nico Makowe](mailto:[email protected])
7+
* [Aghyad Farrouh](mailto:[email protected])
8+
* [Andreas Textor](mailto:[email protected])
9+
* [Michele Santoro](mailto:[email protected])
10+
11+
Please add yourself to this list, if you contribute to the content.

0 commit comments

Comments
 (0)