diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6fb772e..1bc3cd2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -76,11 +76,10 @@ jobs: - name: codecov-pr if: ${{ github.repository == 'OpenFreeEnergy/pontibus' - && github.event_name == 'pull_request' }} - uses: codecov/codecov-action@v4 + && github.event_name != 'schedule' }} + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} file: coverage.xml fail_ci_if_error: False verbose: True - flags: fast-tests diff --git a/README.md b/README.md index 252324d..4c0a4cb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ # pontibus -Experimental OpenFE Protocols for Force Field Evaluation +[![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/) +[![CI](https://github.com/OpenFreeEnergy/pontibus/actions/workflows/ci.yaml/badge.svg)](https://github.com/OpenFreeEnergy/pontibus/actions/workflows/ci.yaml) +[![Documentation](https://readthedocs.org/projects/pontibus/badge/?version=latest)](https://pontibus.readthedocs.io/en/latest/?badge=latest) +[![codecov](https://codecov.io/gh/OpenFreeEnergy/pontibus/graph/badge.svg?token=Lq4c3g9plQ)](https://codecov.io/gh/OpenFreeEnergy/pontibus) + !!WARNING!! This code is experimental and subject to change !!WARNING!! + +Experimental OpenFE Protocols for Force Field Evaluation diff --git a/src/pontibus/tests/protocols/solvation/test_tokenization.py b/src/pontibus/tests/protocols/solvation/test_tokenization.py index d37fbf8..269dd42 100644 --- a/src/pontibus/tests/protocols/solvation/test_tokenization.py +++ b/src/pontibus/tests/protocols/solvation/test_tokenization.py @@ -61,13 +61,20 @@ def protocol_result(afe_solv_transformation_json): class TestProtocol(GufeTokenizableTestsMixin): cls = ASFEProtocol - key = "ASFEProtocol-6d821918a2d558cda0c5bfa7d6d5bace" - repr = f"<{key}>" + key = None + repr = "ASFEProtocol-" @pytest.fixture() def instance(self, protocol): return protocol + def test_repr(self, instance): + """ + Overwrites the base `test_repr` call. + """ + assert isinstance(repr(instance), str) + assert self.repr in repr(instance) + class TestSolventUnit(GufeTokenizableTestsMixin): cls = ASFESolventUnit @@ -111,9 +118,16 @@ def test_repr(self, instance): class TestProtocolResult(GufeTokenizableTestsMixin): cls = ASFEProtocolResult - key = "ASFEProtocolResult-e711f21656c3795ed9d545c326ec717a" - repr = f"<{key}>" + key = None + repr = "ASFEProtocolResult-" @pytest.fixture() def instance(self, protocol_result): return protocol_result + + def test_repr(self, instance): + """ + Overwrites the base `test_repr` call. + """ + assert isinstance(repr(instance), str) + assert self.repr in repr(instance)