Skip to content

[issue-413] add workflow for circle conversion integration test #582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Circle conversion test

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
install_and_test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Installation
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel setuptools_scm build
python -m build -nwx .
python -m pip install --upgrade ./dist/*.whl
shell: bash
- name: Install jd
uses: jaxxstorm/action-install-gh-release@v1.10.0
with: # Grab the latest version
repo: josephburnett/jd
platform: linux
extension-matching: disable
rename-to: jd
chmod: 0755
- name: Run CLI
run: |
pyspdxtools -i ./tests/spdx/data/circleConversionTestInitialDocument.json -o circleTest.yaml
pyspdxtools -i circleTest.yaml -o circleTest.xml
pyspdxtools -i circleTest.xml -o circleTest.rdf
pyspdxtools -i circleTest.rdf -o circleTest.spdx
pyspdxtools -i circleTest.spdx -o circleTest.json
- name: Compare initial and final json document of the circle conversion test
run: jd -set ./tests/spdx/data/circleConversionTestInitialDocument.json circleTest.json
Loading