Skip to content

Commit

Permalink
Release: 20240424.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NS committed Apr 24, 2024
1 parent 3727d7f commit a65c7e7
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
41 changes: 41 additions & 0 deletions Azure/pipelines/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and release on tag

trigger:
branches:
include:
- main

jobs:
- job: Build_distribution
displayName: Build distribution
pool:
vmImage: ubuntu-latest
steps:
- checkout: self

- task: UsePythonVersion@0
inputs:
versionSpec: "3.10"

- bash: pip install poetry=="1.7.1"
displayName: 'Install poetry'

- bash: poetry install
displayName: 'Install dependencies'

- bash: poetry build --format wheel
displayName: 'Build wheel file'

- publish: dist/
artifact: Release

- bash: python -m pip install --upgrade twine artifacts-keyring
displayName: 'Install Twine'

- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: "PyPi DNAKAA"

- bash: |
python -m twine upload -r "environment-mlflow-client" --skip-existing --verbose --config-file $(PYPIRC_PATH) dist/*.whl
displayName: 'Publish to PyPi through Twine'
38 changes: 38 additions & 0 deletions Azure/pipelines/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Linting and code coverage

trigger:
branches:
include:
- main

pr:
branches:
include:
- main

jobs:
- job: lint_and_test
displayName: Lint & Test
pool:
vmImage: ubuntu-latest
steps:
- checkout: self

- task: UsePythonVersion@0
inputs:
versionSpec: "3.10"

- pwsh: pip install poetry=="1.7.1"
displayName: 'Install poetry'

- pwsh: poetry install
displayName: 'Install dependencies'

- pwsh: poetry run black --check .
displayName: Poetry run black

- pwsh: poetry run pylint --fail-under=9 */*
displayName: PyLint

- pwsh: poetry run pytest tests --cov environment_mlflow_client --cov-fail-under 85
displayName: PyTest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "environment-mlflow-client"
version = "3.0.0"
version = "3.0.2"
description = "environment scoped mlflow client"
authors = ["Team Sigma <[email protected]>"]
license = "LICENSE.txt"
Expand Down

0 comments on commit a65c7e7

Please sign in to comment.