Skip to content

Commit 9860e75

Browse files
authored
V0.3.0 (#3)
1 parent 09cc69e commit 9860e75

Some content is hidden

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

50 files changed

+3902
-426
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Expected Behavior
2+
3+
4+
## Actual Behavior
5+
6+
7+
## Steps to Reproduce the Problem
8+
9+
1.
10+
1.
11+
1.
12+
13+
## Specifications
14+
15+
- Version:
16+
- Platform:
17+
- Subsystem:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Fixes #
2+
3+
## Proposed Changes
4+
5+
-
6+
-
7+
-

.github/actions/setup/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Setup
2+
description: Setup for project workflows
3+
runs:
4+
using: composite
5+
steps:
6+
- run: pipx install invoke poetry
7+
shell: bash
8+
- uses: actions/setup-python@v5
9+
with:
10+
python-version: 3.12
11+
cache: poetry

.github/workflows/on-pull-request.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
concurrency:
6+
cancel-in-progress: true
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
jobs:
9+
checks:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: ./.github/actions/setup
14+
- run: poetry install --with dev,checks,formats
15+
- run: poetry run invoke checks
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
release:
3+
types: [published]
4+
env:
5+
DOCKER_IMAGE: ghcr.io/fmind/mlops-python-package:latest
6+
concurrency:
7+
cancel-in-progress: true
8+
group: on-release-published
9+
jobs:
10+
pages:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: ./.github/actions/setup
15+
- run: poetry install --with docs
16+
- run: poetry run invoke docs
17+
- uses: JamesIves/github-pages-deploy-action@v4
18+
with:
19+
folder: docs/
20+
branch: gh-pages
21+
packages:
22+
permissions:
23+
packages: write
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: ./.github/actions/setup
28+
- run: poetry run invoke packages
29+
- uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
- uses: docker/setup-buildx-action@v3
35+
- uses: docker/build-push-action@v5
36+
with:
37+
push: true
38+
context: .
39+
cache-to: type=gha
40+
cache-from: type=gha
41+
tags: ${{ env.DOCKER_IMAGE }}

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@
1212
# Editor
1313
/.idea/
1414
/.vscode/
15+
.ipynb_checkpoints/
1516

1617
# Environs
1718
/.venv/
18-
poetry.lock
19-
20-
# Notebooks
21-
.ipynb_checkpoints/
2219

2320
# Project
2421
/docs/*
25-
/models/*
2622
/outputs/*
2723
!**/.gitkeep
2824

confs/inference.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ job:
66
outputs:
77
KIND: ParquetWriter
88
path: outputs/predictions.parquet
9-
deserializer:
10-
KIND: JoblibModelDeserializer
11-
path: models/model.joblib

confs/training.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ job:
66
targets:
77
KIND: ParquetReader
88
path: data/targets.parquet
9-
serializer:
10-
KIND: JoblibModelSerializer
11-
path: models/model.joblib

data/Readme.txt

100755100644
File mode changed.

data/hour.csv

100755100644
File mode changed.

0 commit comments

Comments
 (0)