Skip to content

Commit

Permalink
Kick off (#1)
Browse files Browse the repository at this point in the history
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
mristin authored Jun 19, 2022
1 parent 72409f9 commit 5d24e42
Show file tree
Hide file tree
Showing 2,620 changed files with 64,223 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
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 }}
36 changes: 36 additions & 0 deletions .github/workflows/publish-to-pypi.yml
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/*
3 changes: 3 additions & 0 deletions .gitignore
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]
Expand Down
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/aas-core3.0rc02-testgen.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions .idea/csv-plugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/dictionaries/rist.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions README.md

This file was deleted.

8 changes: 8 additions & 0 deletions README.rst
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
6 changes: 6 additions & 0 deletions aas_core3_0_rc02_testgen/__init__.py
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"
Loading

0 comments on commit 5d24e42

Please sign in to comment.