File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments