Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
enable-cache: true
- name: Install dependencies
run: |
uv pip install pytest
uv pip install pytest coverage
- name: Test ${{ matrix.library }}
if: contains(github.event.pull_request.changed_files, 'libs/${{ matrix.library }}/**')
run: |
cd libs/${{ matrix.library }}
uv pip install -e .[all]
pytest tests/unit
- name: Generate Report
- name: Generate Report for ${{ matrix.library }}
if: contains(github.event.pull_request.changed_files, 'libs/${{ matrix.library }}/**')
run: |
uv pip install coverage
coverage run -m pytest
coverage run -m pytest libs/${{ matrix.library }}/tests/unit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
4 changes: 3 additions & 1 deletion libs/garf_core/garf_core/api_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import requests
from typing_extensions import override

from garf_core import exceptions


@dataclasses.dataclass
class GarfApiRequest:
Expand All @@ -35,7 +37,7 @@ class GarfApiResponse:
results: list


class GarfApiError(Exception):
class GarfApiError(exceptions.GarfError):
"""API specific exception."""


Expand Down
2 changes: 1 addition & 1 deletion libs/garf_core/garf_core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module for defining exceptions."""
"""Defines common exceptions for the garf-core library."""

from __future__ import annotations

Expand Down
Loading