Skip to content

Commit

Permalink
ISSUE-146 docuented new build.env format (#147)
Browse files Browse the repository at this point in the history
* ISSUE-146 docuented new build.env format

* updating setuptools

* ISSUE-146 added python matrix

* ISSUE-146 added python matrix version

* ISSUE-146 added python matrix versions

* ISSUE-146 added python matrix versions

* ISSUE-146 added python matrix parallelism
  • Loading branch information
juanmatias authored Nov 29, 2022
1 parent e837b9e commit 10b3478
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@ jobs:

integration_tests_cli_refarch:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8.14,3.9.15,3.10.8]
steps:
- name: Checkout base branch
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Build Leverage CLI
run: |
printf "[INFO] Building Leverage CLI\n"
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python_version = ">=3.8"
pylint = "==2.9.3"
pytest = "==6.2.4"
pytest-cov = "==2.12.1"
setuptools = "==56.2.0"
setuptools = "==58.2.0"
wheel = "==0.36.2"
twine = "==3.4.1"
leverage = {editable = true, path = "."}
Expand Down
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,42 @@ Provides the means to interact with your Leverage project and allows you to defi
## Documentation
For installation instructions and all documentation regarding Leverage CLI, please refer to [this page](https://leverage.binbash.com.ar/how-it-works/leverage-cli/).

### Note for migration from previous versions

If you come from Leverage CLI version <1.8.0 and want to install Leverage CLI version >= 1.8.0 keep into account the following.

The `build.env` file format has changed. As an example, this is the old format:
```
# Project settings
PROJECT=bb
# General
MFA_ENABLED=false
# Terraform
TERRAFORM_IMAGE_NAME=binbash/terraform-awscli-slim
TERRAFORM_IMAGE_TAG=1.1.9
```

New version example:
```
# Project settings
PROJECT=bb
# General
MFA_ENABLED=false
# Terraform
TERRAFORM_IMAGE_TAG=1.2.7-0.0.5
```

So, if you have created a project with version <1.8.0 and want to use it with version >=1.8.0 you should:

- remove TERRAFORM_IMAGE_NAME line
- update TERRAFORM_IMAGE_TAG from this form '9.9.9' to this one '9.9.9-9.9.9'.

For the second item you can check the version [here](https://hub.docker.com/r/binbash/leverage-toolbox/tags).

## Running Tests
To run unit tests, pytest is the tool of choice, and the required dependencies are available in the corresponding `dev-requirements.txt`.

Expand Down

0 comments on commit 10b3478

Please sign in to comment.