Skip to content

Commit

Permalink
fix: connectors ci
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
  • Loading branch information
ab93 committed Jun 6, 2024
1 parent a52ed60 commit ec60350
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
numaloigic-core:
name: Python version
name: numalogic-core
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -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'
Expand All @@ -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
4 changes: 2 additions & 2 deletions libs/numalogic-connectors/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -19,4 +19,4 @@ setup:

# test your application (tests in the tests/ directory)
test:
poetry run pytest -v tests/
pytest -v tests/

0 comments on commit ec60350

Please sign in to comment.