Skip to content

Commit 543b0b8

Browse files
authored
Merge pull request #288 from OpenTabular/master
Update package name and unit tests
2 parents 30f8766 + 3c21591 commit 543b0b8

File tree

135 files changed

+432
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+432
-320
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion

.github/workflows/pr-tests.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
11
name: PR Unit Tests
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches:
67
- develop
78
- master # Add any other branches where you want to enforce tests
89

10+
concurrency:
11+
group: pytest-${{ github.head_ref || github.sha }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
test:
11-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1222

1323
steps:
1424
- name: Checkout Repository
1525
uses: actions/checkout@v4
1626

27+
- name: Install Poetry
28+
uses: abatilo/actions-poetry@v4
29+
1730
- name: Set up Python
1831
uses: actions/setup-python@v4
1932
with:
20-
python-version: "3.10" # Change this to match your setup
21-
22-
- name: Install Poetry
23-
run: |
24-
curl -sSL https://install.python-poetry.org | python3 -
25-
echo "$HOME/.local/bin" >> $GITHUB_PATH
26-
export PATH="$HOME/.local/bin:$PATH"
33+
python-version: ${{ matrix.python-version }}
34+
cache: 'poetry'
2735

2836
- name: Install Dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
poetry install
32-
pip install pytest
33-
34-
- name: Install Package Locally
35-
run: |
36-
poetry build
37-
pip install dist/*.whl # Install the built package to fix "No module named 'mambular'"
37+
run: poetry install
3838

3939
- name: Run Unit Tests
40-
env:
41-
PYTHONPATH: ${{ github.workspace }} # Ensure the package is discoverable
42-
run: pytest tests/
40+
run: poetry run pytest tests/ -v
4341

4442
- name: Verify Tests Passed
4543
if: ${{ success() }}

README.md

Lines changed: 34 additions & 34 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717

1818
# The following line *must* be the last in the module, exactly as formatted:
1919

20-
__version__ = "1.5.0"
20+
__version__ = "1.6.0"
2121

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import torch
22
import torch.nn as nn
33
import torch.nn.functional as F
4-
from mambular.arch_utils.layer_utils.sparsemax import sparsemax, sparsemoid
4+
from deeptabular.arch_utils.layer_utils.sparsemax import sparsemax, sparsemoid
55
from .data_aware_initialization import ModuleWithInit
66
from .numpy_utils import check_numpy
77
import numpy as np

0 commit comments

Comments
 (0)