Skip to content

Commit

Permalink
wkflw: registry
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 5b28c32 commit c04daeb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,26 @@ jobs:
run: pwd
- name: Run tests
run: make test
numalogic-registry:
name: numalogic-registry
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./libs/numalogic-registry
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-registry
run: make setup
- name: Run tests
working-directory: ./libs/numalogic-registry
run: make test
6 changes: 3 additions & 3 deletions libs/numalogic-registry/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ clean:
@find . -type f -name "*.py[co]" -exec rm -rf {} +

format: clean
black libs/ apps/ examples/ tests/
black nlregistry/ tests/

lint: format
ruff check --fix .

setup:
pip install -e ../numalogic-core
pip install ../numalogic-core
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-dev.txt

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

0 comments on commit c04daeb

Please sign in to comment.