Skip to content

Commit 5c99b5c

Browse files
[issue-413] add workflow for circle conversion integration test
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
1 parent e27cef9 commit 5c99b5c

2 files changed

Lines changed: 476 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Circle conversion test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
install_and_test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.11
20+
- name: Installation
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install --upgrade setuptools wheel setuptools_scm build
24+
python -m build -nwx .
25+
python -m pip install --upgrade ./dist/*.whl
26+
shell: bash
27+
- name: Install jd
28+
uses: jaxxstorm/action-install-gh-release@v1.10.0
29+
with: # Grab the latest version
30+
repo: josephburnett/jd
31+
platform: linux
32+
extension-matching: disable
33+
rename-to: jd
34+
chmod: 0755
35+
- name: Run CLI
36+
run: |
37+
pyspdxtools -i ./tests/spdx/data/circleConversionTestInitialDocument.json -o circleTest.yaml
38+
pyspdxtools -i circleTest.yaml -o circleTest.xml
39+
pyspdxtools -i circleTest.xml -o circleTest.rdf
40+
pyspdxtools -i circleTest.rdf -o circleTest.spdx
41+
pyspdxtools -i circleTest.spdx -o circleTest.json
42+
- name: Compare initial and final json document of the circle conversion test
43+
run: jd -set ./tests/spdx/data/circleConversionTestInitialDocument.json circleTest.json

0 commit comments

Comments
 (0)