From ec603507c98490adb6712b9586fac932a6fb2863 Mon Sep 17 00:00:00 2001 From: Avik Basu Date: Thu, 6 Jun 2024 11:38:20 -0700 Subject: [PATCH] fix: connectors ci Signed-off-by: Avik Basu --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++-- libs/numalogic-connectors/makefile | 4 ++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78ce312b..94694ada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: numaloigic-core: - name: Python version + name: numalogic-core runs-on: ubuntu-latest strategy: fail-fast: false @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -29,3 +29,25 @@ jobs: - name: Run tests working-directory: ./libs/numalogic-core run: make test + numalogic-connectors: + name: numalogic-conectors + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ "3.10", "3.11" ] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install dependencies + working-directory: ./libs/numalogic-connectors + run: | + pip install ../numalogic-core + pip install -r requirements/requirements.txt + - name: Run tests + working-directory: ./libs/numalogic-connectors + run: make test diff --git a/libs/numalogic-connectors/makefile b/libs/numalogic-connectors/makefile index 32674495..2d208422 100644 --- a/libs/numalogic-connectors/makefile +++ b/libs/numalogic-connectors/makefile @@ -7,7 +7,7 @@ clean: @find . -type f -name "*.py[co]" -exec rm -rf {} + format: clean - black libs/ apps/ examples/ tests/ + black nlconnectors/ tests/ lint: format ruff check --fix . @@ -19,4 +19,4 @@ setup: # test your application (tests in the tests/ directory) test: - poetry run pytest -v tests/ + pytest -v tests/