Skip to content

Commit

Permalink
Run idxml tests only if pyopenms is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Jan 20, 2025
1 parent c667527 commit ca1dd4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ jobs:
- name: Install package and its dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,idxml]
pip install .[dev]
- name: Install optional dependencies that might not be available
continue-on-error: true
run: pip install .[idxml]

- name: Test imports
run: python -c "import psm_utils"
Expand Down
4 changes: 4 additions & 0 deletions tests/test_io/test_idxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

import hashlib

import pytest

from psm_utils.io.idxml import IdXMLReader, IdXMLWriter
from psm_utils.io.sage import SageTSVReader
from psm_utils.peptidoform import Peptidoform
from psm_utils.psm import PSM

pyopenms = pytest.importorskip("pyopenms")


class TestIdXMLReader:
def test__parse_peptidoform(self):
Expand Down

0 comments on commit ca1dd4d

Please sign in to comment.