This file contains hidden or 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
| git commit -m "fix: example fix commit" | |
| cz bump | |
| git push --tags |
This file contains hidden or 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
| - script: | | |
| git config --global user.email "<my_email>" && git config --global user.name "<my_name>" | |
| cz bump | |
| git push --tags origin HEAD:master | |
| condition: eq(variables['build.sourceBranch'], 'refs/heads/master') | |
| displayName: 'Bump package version number' |
This file contains hidden or 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
| - checkout: self | |
| persistCredentials: true |
This file contains hidden or 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
| [build-system] | |
| requires = ["setuptools>=42"] | |
| build-backend = "setuptools.build_meta" | |
| [tool.commitizen] | |
| version="1.0.0" | |
| version_files = [ | |
| "setup.py:version" | |
| ] | |
| bump_message = "release $current_version -> $new_version [skip ci]" |
This file contains hidden or 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
| trigger: | |
| - master | |
| - feature/* | |
| variables: | |
| isMaster: $[eq(variables['build.sourceBranch'], 'refs/heads/master')] | |
| CI_USERNAME: "CI Pipeline" | |
| CI_EMAIL: [email protected] | |
| jobs: |
This file contains hidden or 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
| steps: | |
| - script: | | |
| if [[ "$(Build.SourceVersionMessage)" =~ "no-cache" ]]; then | |
| echo "Setting SKIP_CACHE to true" | |
| echo "##vso[task.setvariable variable=SKIP_CACHE]true" | |
| else | |
| echo "Setting SKIP_CACHE to false" | |
| echo "##vso[task.setvariable variable=SKIP_CACHE]false" | |
| fi | |
| name: SkipCache |
This file contains hidden or 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
| variables: | |
| CONDA_ENV_NAME: "unit_test" | |
| # set $(CONDA) environment variable to your conda path (pre-populated on 'ubuntu-latest' VMs) | |
| CONDA_ENV_DIR: $(CONDA)/envs/$(CONDA_ENV_NAME) | |
| steps: | |
| - script: echo "##vso[task.prependpath]$CONDA/bin" | |
| displayName: Add conda to PATH |
This file contains hidden or 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
| steps: | |
| - task: Cache@2 | |
| displayName: Use cached Anaconda environment | |
| inputs: | |
| key: 'conda | "$(Agent.OS)" | requirements.txt' | |
| path: $(CONDA_ENV_DIR) | |
| cacheHitVar: CONDA_CACHE_RESTORED |
This file contains hidden or 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
| import numpy | |
| np.array([1, 2, 3]) |