-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* commit * install poetry * config * fix tag filter * Updated config.yml * config * config * config * config * config * -v config * -v config * -v config * --no-ansi * --no-interaction * Print Python and Poetry versions * Updated config.yml * poetry install --no-root * orb * args: --no-root * del packages = [{include = "demisto_py"}] * del packages = [{include = "demisto_py"}] * revert no root * update poetry * python -m * poetry install --no-interaction --no-ansi -no-root * test pypi * test pypi * ${PYPI_TEST_TOKEN} * Updated config.yml * BUILD * - checkout * --build --no-ansi * --no-interaction * BUILD * *poetry_build * poetry_build * echo * debug poetry config --list * debug poetry config --list * debug poetry config --list * config * config * del files * attach_workspace * del files * del files * del files * changelog * version = "3.3.0" * replace from 3.10 to 3.11.4 * demo publish * revert docker version added verify requires * Updated config.yml * include * revert include * revert include * re * code * sudo * revert gen code * ubuntu docker * machine * del commands * Apache-2.0 * checkout * only: sk_change_to_-poetry * version 3.1.1 * 'Apache Software License' * Apache-2.0 * "3.3.1beta1" * test tag * test tag * tag 2 * tag 2 * update MD * cr fix, update changelog * CHANGELOG * added docker parameter * del test-requirements file * edit swagger codegen ignore * update comment * update comment * fix link * update poetry * Update CHANGELOG.md Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com> * Update README.md Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com> * update version --------- Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
624 additions
and
158 deletions.
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 |
---|---|---|
@@ -1,42 +1,112 @@ | ||
### ============================================================= | ||
### This configuration file is used by CircleCI build server | ||
### https://circleci.com/docs/config-sample | ||
### https://circleci.com/docs/sample-config | ||
### ============================================================= | ||
version: 2 | ||
version: 2.1 | ||
|
||
parameters: | ||
docker_image_for_publishing: | ||
# python 3.10 is the latest supported version | ||
description: "Docker image to use for the build" | ||
type: string | ||
default: cimg/python:3.10 | ||
|
||
references: | ||
install_poetry: &install_poetry | ||
- run: | ||
name: Install Poetry | ||
command: | | ||
# in old images we need to remove existing poetry | ||
rm -rf $HOME/.poetry/bin/poetry | ||
sudo curl -sSL https://install.python-poetry.org | python3 - | ||
poetry --version | ||
install_project_dependencies: &install_project_dependencies | ||
- run: | ||
name: Install Project Dependencies | ||
command: | | ||
poetry install --no-interaction --no-ansi --no-root | ||
poetry_build: &poetry_build | ||
- run: | ||
name: Build Package | ||
command: | | ||
poetry build | ||
jobs: | ||
# using tox | ||
toxify: | ||
machine: | ||
run-unit-tests: | ||
parameters: | ||
pythonversion: | ||
type: string | ||
docker: | ||
- image: cimg/python:<< parameters.pythonversion >> | ||
steps: | ||
- checkout | ||
- <<: *install_poetry | ||
- <<: *install_project_dependencies | ||
- run: | ||
name: Run Unit Tests | ||
command: | | ||
mkdir test-results | ||
poetry run python -m pytest --junitxml=test-results/junit.xml -v tests | ||
- store_test_results: | ||
path: test-results | ||
verify: | ||
machine: | ||
image: ubuntu-2004:202201-02 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Verify | ||
command: | | ||
./verify.sh | ||
publish-to-test-pypi: | ||
docker: | ||
- image: << pipeline.parameters.docker_image_for_publishing >> | ||
steps: | ||
- checkout | ||
- <<: *poetry_build | ||
- run: | ||
name: Publish Package To Test PyPI | ||
command: | | ||
poetry config repositories.testpypi https://test.pypi.org/legacy/ | ||
poetry publish -u __token__ -p ${PYPI_TEST_TOKEN} -r testpypi | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Setup Python | ||
command: | | ||
pyenv versions | ||
pyenv install 3.9.10 | ||
pyenv install 3.8.12 | ||
pyenv global 3.10.2 3.9.10 3.8.12 | ||
- run: | ||
name: tox build | ||
command: | | ||
pip install tox | ||
tox -q | ||
- run: | ||
name: verify | ||
command: | | ||
./verify.sh | ||
- run: | ||
name: deploy | ||
command: | | ||
./deploy.sh | ||
publish-to-pypi: | ||
docker: | ||
- image: << pipeline.parameters.docker_image_for_publishing >> | ||
steps: | ||
- checkout | ||
- <<: *poetry_build | ||
- run: | ||
name: Publish Package To PyPI | ||
command: | | ||
poetry publish -u __token__ -p ${PYPI_TOKEN} | ||
workflows: | ||
version: 2 | ||
build_and_release: | ||
jobs: | ||
- toxify: | ||
- run-unit-tests: | ||
matrix: | ||
parameters: | ||
pythonversion: ["3.8", "3.9", "3.10"] | ||
name: run-unit-tests-<< matrix.pythonversion >> | ||
- verify | ||
- publish-to-test-pypi: | ||
requires: | ||
- run-unit-tests | ||
- verify | ||
filters: | ||
branches: | ||
only: master | ||
- publish-to-pypi: | ||
requires: | ||
- run-unit-tests | ||
- verify | ||
filters: | ||
tags: | ||
only: /^v\d+\.\d+\.\d+$/ | ||
only: /^v\d+\.\d+\.\d+$/ # only run on tags [e.g. v0.0.0] | ||
branches: | ||
ignore: /.*/ | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ | |
#!docs/README.md | ||
|
||
.gitignore | ||
tox.ini | ||
test-requirements.txt | ||
setup.py | ||
requirements.txt | ||
poetry.lock | ||
pyproject.toml | ||
|
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
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
Oops, something went wrong.