Skip to content

Commit e700b83

Browse files
Merge pull request #40 from neptune-ai/aw/update-integration
Update MLflow integration
2 parents 49198e5 + 1d80316 commit e700b83

Some content is hidden

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

41 files changed

+1087
-592
lines changed

.github/actions/e2e/action.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Test E2E
3+
description: Run e2e tests
4+
inputs:
5+
working_directory:
6+
description: "Working directory"
7+
required: false
8+
default: .
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
repository: neptune-ai/neptune-mlflow
16+
path: ${{ inputs.working_directory }}
17+
18+
- name: Install dependencies
19+
working-directory: ${{ inputs.working_directory }}
20+
run: pip install -e .[dev]
21+
shell: bash
22+
23+
- name: Run tests
24+
working-directory: ${{ inputs.working_directory }}
25+
run: pytest -v tests/e2e
26+
shell: bash

.github/actions/unit/action.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Unit test
3+
description: Run unit tests
4+
inputs:
5+
working_directory:
6+
description: "Working directory"
7+
required: false
8+
default: .
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
repository: neptune-ai/neptune-mlflow
16+
path: ${{ inputs.working_directory }}
17+
18+
- name: Install dependencies
19+
working-directory: ${{ inputs.working_directory }}
20+
run: pip install -e .[dev]
21+
shell: bash
22+
23+
- name: Run tests
24+
working-directory: ${{ inputs.working_directory }}
25+
run: pytest -v tests/unit
26+
shell: bash

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: neptune-mlflow
2+
on: [push]
3+
jobs:
4+
pre-commit:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
9+
- uses: actions/setup-python@v2
10+
with:
11+
python-version: 3.9
12+
13+
- name: Install dependencies
14+
run: |
15+
pip install -e .[dev]
16+
17+
- name: Pre-commit
18+
run: |
19+
pre-commit run --show-diff-on-failure --color=always
20+
21+
e2e:
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
os: [ubuntu-latest, macos-latest, windows-latest]
26+
python-version: [3.9]
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Test
35+
env:
36+
NEPTUNE_API_TOKEN: ${{ secrets.E2E_NEPTUNE_API_TOKEN }}
37+
NEPTUNE_PROJECT: e2e-tests/e2e
38+
uses: ./.github/actions/e2e
39+
40+
unit:
41+
runs-on: ${{ matrix.os }}
42+
strategy:
43+
matrix:
44+
os: [ ubuntu-latest, macos-latest, windows-latest ]
45+
python-version: [ 3.9 ]
46+
steps:
47+
- uses: actions/checkout@v2
48+
49+
- uses: actions/setup-python@v2
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
53+
- name: Test
54+
uses: ./.github/actions/unit
55+
56+
publish:
57+
needs: [pre-commit, e2e, unit]
58+
runs-on: ubuntu-latest
59+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- uses: actions/setup-python@v2
64+
with:
65+
python-version: 3.9
66+
67+
- name: Install build dependencies
68+
run: pip install poetry poetry-dynamic-versioning
69+
70+
- name: Build package
71+
run : |
72+
poetry build
73+
74+
- name: Publish package
75+
uses: pypa/gh-action-pypi-publish@v1.5.1
76+
with:
77+
user: __token__
78+
password: ${{ secrets.PYPI_API_TOKEN }}
79+
packages_dir: dist

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ venv.bak/
107107

108108
# Pycharm
109109
.idea/
110+
111+
# MLflow
112+
mlruns/
113+
test_tracking_uri/
114+
115+
# Neptune
116+
.neptune/

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## [UNRELEASED] neptune-mlflow 1.0.0
2+
3+
### Changes
4+
- Updated MLflow exporter to work with the current neptune.ai API ([#40](https://github.com/neptune-ai/neptune-mlflow/pull/40))

MANIFEST.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs_requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)