Skip to content

Commit 03ac525

Browse files
Merge pull request #18 from squaredev-io/workflows
Added workflows
2 parents 70829ba + cdc0bbd commit 03ac525

File tree

4 files changed

+65
-4
lines changed

4 files changed

+65
-4
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.11"
20+
cache: "pip" # caching pip dependencies
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -r requirements.txt
25+
26+
- name: test
27+
run: pytest -s
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release PyPI Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release_package:
9+
permissions:
10+
contents: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Python 3.11
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.11"
22+
cache: "pip" # caching pip dependencies
23+
24+
- name: Build a binary wheel and a source tarball.
25+
run: pip install wheel && python setup.py sdist bdist_wheel
26+
27+
- name: Publish distribution 📦 to PyPI
28+
if: startsWith(github.ref, 'refs/tags')
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ Witness the seamless integration of temporal mastery into your coding sanctum!
2727

2828
Embark on an odyssey through time as you harness the Timepulse magic. Transform raw time series data into insights that transcend the ordinary. Your code, now a symphony of temporal brilliance!
2929

30+
### How to use timepulse
31+
#### Import
3032
```{python}
3133
from timepulse.models.nn import MultivariateDenseWrapper
3234
from timepulse.utils.models import run_model
35+
```
36+
#### Run model
3337

38+
```{python}
3439
y_pred, result_metrics = run_model(model_instance, X_train.values, y_train, X_val.values, y_val, verbose=0)
35-
36-
print( y_pred, results_metrics)
37-
3840
```
3941

42+
#### Results example
4043
```
4144
[ 8287547.5 10593171. 12349981. 13229407. 10743349. 8585146.
4245
7701900. 6690604.5 6193717.5 5999759. 5651086.5 5573535.5

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ pytest==7.4.3
66
scikit_learn==1.3.2
77
setuptools==65.5.0
88
tensorflow==2.14.0
9-
tensorflow_macos==2.14.0
9+
# tensorflow_macos==2.14.0
1010
typer==0.9.0
1111
xgboost==2.0.2

0 commit comments

Comments
 (0)