Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nguu0123 committed May 28, 2024
2 parents 2d78367 + c2438b7 commit a7dcd78
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Python CI

on: [push, pull_request]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd qoa4ml_lib
pip install -r requirements.txt
pip install -r dev_requirements.txt
# Uncomment when fix ydata
#pip install -r ml_requirements.txt
cd ..
- uses: pre-commit/[email protected]
1 change: 0 additions & 1 deletion example/simple/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from devtools import debug
from qoa4ml.qoa_client import QoaClient
from qoa4ml.reports.rohe_reports import RoheReport

client1 = QoaClient(config_path="./config/client1.yaml")
client2 = QoaClient(config_path="./config/client2.yaml")
Expand Down
2 changes: 1 addition & 1 deletion qoa4ml_lib/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.3
16 changes: 9 additions & 7 deletions qoa4ml_lib/qoa4ml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# NOTE: Mark lazy module globally, only load when used
#
# lazy_import.lazy_module("numpy")
# lazy_import.lazy_module("tensorflow")
# lazy_import.lazy_module("psutil")
# lazy_import.lazy_module("pydantic")
# lazy_import.lazy_module("fastapi")
# lazy_import.lazy_module("tinyflux")
import lazy_import

lazy_import.lazy_module("requests")
lazy_import.lazy_module("tensorflow")
lazy_import.lazy_module("numpy")
lazy_import.lazy_module("pandas")
lazy_import.lazy_module("fastapi")
lazy_import.lazy_module("tinyflux")
lazy_import.lazy_module("psutil")
1 change: 1 addition & 0 deletions qoa4ml_lib/qoa4ml/qoa_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def __init__(

def registration(self, url: str):
# get connector configuration by registering with the monitoring service

return requests.request(
"POST", url, headers=headers, data=self.client_config.json()
)
Expand Down
Empty file.

0 comments on commit a7dcd78

Please sign in to comment.