Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #738 from hvac/develop
Release v0.11.0
- Loading branch information
Showing
150 changed files
with
13,204 additions
and
9,289 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,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.10.14 | ||
current_version = 0.11.0 | ||
commit = True | ||
tag = True | ||
|
||
|
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 @@ | ||
ko_fi: jeffwecan |
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,154 @@ | ||
name: Lint and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install `black` and `flake8` | ||
run: | | ||
pip install \ | ||
black \ | ||
flake8 \ | ||
; | ||
- name: Check formatting with `black` | ||
run: black --check . | ||
|
||
- name: Lint with `flake8` | ||
run: flake8 . --count --statistics | ||
|
||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python dependencies | ||
run: pip install -r requirements-dev.txt | ||
|
||
- name: pytest tests/unit_tests | ||
run: | | ||
pytest \ | ||
--cov=hvac \ | ||
--cov-report=xml \ | ||
tests/unit_tests | ||
- name: Upload unit tests coverage artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: unit_tests-coverage.xml | ||
path: coverage.xml | ||
if-no-files-found: error | ||
|
||
integration-tests: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.6 | ||
vault-version: | ||
- 1.4.7 | ||
- 1.5.9 | ||
- 1.6.5 | ||
- 1.7.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python dependencies | ||
run: pip install -r requirements-dev.txt | ||
|
||
- name: Install Vault and Consul (for integration tests) | ||
run: | | ||
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | ||
echo "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \ | ||
| sudo tee /etc/apt/sources.list.d/hashicorp.list | ||
sudo apt update \ | ||
-o Dir::Etc::sourceparts="-" \ | ||
-o APT::Get::List-Cleanup="0" \ | ||
-o Dir::Etc::sourcelist="sources.list.d/hashicorp.list" | ||
sudo apt install \ | ||
consul \ | ||
vault-enterprise \ | ||
; | ||
# We disble cap_ipc_lock here as its generally incompatabile with GitHub | ||
# Actions' runtime environments. | ||
sudo setcap cap_ipc_lock= /usr/bin/vault | ||
- name: pytest tests/integration_tests | ||
run: | | ||
pytest \ | ||
--cov=hvac \ | ||
--cov-report=xml \ | ||
tests/integration_tests | ||
- name: Upload integration tests coverage artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: integration_tests-coverage.xml | ||
path: coverage.xml | ||
if-no-files-found: error | ||
|
||
upload-to-codecov: | ||
name: Upload to Codecov | ||
runs-on: ubuntu-latest | ||
needs: | ||
- unit-tests | ||
- integration-tests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v1 |
This file was deleted.
Oops, something went wrong.
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
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.