-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This is the initial version of the code. So far, we generate only JSON data based on aas-core-meta 2022.6.19 and aas-core-codegen 0.0.13. The code generated by aas-core-codegen passes all the tests with the JSON data. The generation of XML data, and the corresponding changes, are still pending.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master, main ] | ||
tags: [ "**" ] | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
jobs: | ||
Execute-continuous-integration: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10'] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip3 install --upgrade coveralls | ||
pip3 install -e .[dev] | ||
- name: Run checks | ||
run: | | ||
python3 continuous_integration/precommit.py | ||
- name: Upload Coverage | ||
run: coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: ${{ matrix.python-version }} | ||
COVERALLS_PARALLEL: true | ||
|
||
Finish-Coveralls: | ||
name: Finish Coveralls | ||
needs: Execute-continuous-integration | ||
runs-on: ubuntu-latest | ||
container: python:3-slim | ||
steps: | ||
- name: Finish Coveralls | ||
run: | | ||
pip3 install --upgrade coveralls | ||
coveralls --finish --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Based on https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml | ||
name: Publish to Pypi | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
push: | ||
branches: | ||
- '*/fixed-publishing-to-pypi' | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
python setup.py sdist | ||
twine upload dist/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# One-off scripts | ||
deleteme*.py | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
aas-core3.0rc02-testgen | ||
======================= | ||
|
||
This is a bundle of programs to generate test data based on the meta-model V3.0RC02. | ||
|
||
Please have a look at the directory `test_data`_ for the generated data. | ||
|
||
.. _test_data: TODO |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""Generate test data based on the meta-model V3.0RC02.""" | ||
|
||
__version__ = "0.0.1" | ||
__author__ = "Marko Ristin, Nico Braunisch" | ||
__license__ = "License :: OSI Approved :: MIT License" | ||
__status__ = "Production/Stable" |