Skip to content

Commit

Permalink
test: Remove schema files and adapt CI to fetch them
Browse files Browse the repository at this point in the history
This removes the JSON Schema and XSD files that
stem from the aas-specs repository.
Instead, this adds the logic in the CI to fetch
these files at runtime.

Furthermore, we skip the unittests that make use
of the schema files when they do not exist.
  • Loading branch information
s-heppner committed Mar 27, 2024
1 parent 290821d commit 09ce09d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2,874 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
python-version: ["3.8", "3.10", "3.12"]
env:
COUCHDB_ADMIN_PASSWORD: "yo0Quai3"
AAS_SPECS_RELEASE_TAG: "V3.0.7"
services:
couchdb:
image: couchdb:3
Expand All @@ -28,6 +29,11 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Collect schema files from aas-specs
run: |
mkdir -p ./test/adapter/schema
curl -sSL -o ./test/adapter/schema/aasJSONSchema.json https://raw.githubusercontent.com/admin-shell-io/aas-specs/${{ env.AAS_SPECS_RELEASE_TAG }}/schemas/json/aas.json
curl -sSL -o ./test/adapter/schema/aasXMLSchema.xsd https://raw.githubusercontent.com/admin-shell-io/aas-specs/${{ env.AAS_SPECS_RELEASE_TAG }}/schemas/xml/AAS.xsd
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@

# customized config files
/test/test_config.ini
# Schema files needed for testing
/test/adapter/schemas
Loading

0 comments on commit 09ce09d

Please sign in to comment.