File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ jobs:
2727 enable-cache : true
2828 - name : Install dependencies
2929 run : |
30- uv pip install pytest
30+ uv pip install pytest coverage
3131 - name : Test ${{ matrix.library }}
3232 if : contains(github.event.pull_request.changed_files, 'libs/${{ matrix.library }}/**')
3333 run : |
3434 cd libs/${{ matrix.library }}
3535 uv pip install -e .[all]
3636 pytest tests/unit
37- - name : Generate Report
37+ - name : Generate Report for ${{ matrix.library }}
38+ if : contains(github.event.pull_request.changed_files, 'libs/${{ matrix.library }}/**')
3839 run : |
39- uv pip install coverage
40- coverage run -m pytest
40+ coverage run -m pytest libs/${{ matrix.library }}/tests/unit
4141 - name : Upload coverage reports to Codecov
4242 uses : codecov/codecov-action@v3
4343 env :
Original file line number Diff line number Diff line change 2222import requests
2323from typing_extensions import override
2424
25+ from garf_core import exceptions
26+
2527
2628@dataclasses .dataclass
2729class GarfApiRequest :
@@ -35,7 +37,7 @@ class GarfApiResponse:
3537 results : list
3638
3739
38- class GarfApiError (Exception ):
40+ class GarfApiError (exceptions . GarfError ):
3941 """API specific exception."""
4042
4143
Original file line number Diff line number Diff line change 2222# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2323# See the License for the specific language governing permissions and
2424# limitations under the License.
25- """Module for defining exceptions ."""
25+ """Defines common exceptions for the garf-core library ."""
2626
2727from __future__ import annotations
2828
You can’t perform that action at this time.
0 commit comments