File: integration_test.yml

package info (click to toggle)
python-spdx-tools 0.8.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 5,084 kB
  • sloc: python: 18,675; xml: 12,553; sh: 46; makefile: 6
file content (43 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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