Skip to content

Commit 00c355d

Browse files
fholgerarmintaenzertng
authored andcommitted
Execute test_graph_generation as part of the regular test run rather
than a separate step in the pipeline. Background: there is currently an issue with newer patch versions of Python 3.7 on macos, which are missing bz2 support, thus leading to a failure to include the optional networkx package. This in turn results in that particular test being skipped. But if it runs as a separate step in the pipeline, this means that no tests will execute at all in that step and it will then be marked as an overall failure. See actions/setup-python#682 Signed-off-by: Holger Frydrych <holger.frydrych@tngtech.com>
1 parent 08e9c03 commit 00c355d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/install_and_test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ jobs:
2929
python -m pip install --upgrade ./dist/*.whl
3030
python -m pip install pytest
3131
python -m pip install pyshacl
32+
python -m pip install networkx
3233
shell: bash
3334
- name: Run tests
3435
run: pytest
3536
- name: Run CLI
3637
run: pyspdxtools -i ./tests/spdx/data/SPDXJSONExample-v2.3.spdx.json
37-
38-
- name: Install optional dependencies
39-
run: python -m pip install networkx
40-
- name: Run tests for graph generation
41-
run: pytest tests/spdx/test_graph_generation.py

0 commit comments

Comments
 (0)