-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NS
committed
Apr 24, 2024
1 parent
3727d7f
commit a65c7e7
Showing
3 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|