Skip to content

add possibility of adding extra arguments, like expires_on and conten… #40

add possibility of adding extra arguments, like expires_on and conten…

add possibility of adding extra arguments, like expires_on and conten… #40

Workflow file for this run

name: Keyvault
on:
push:
branches:
- '*'
- '!master'
- '!main'
- '!development'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [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 dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black pytest
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=100 --statistics --per-file-ignores="__init__.py:F401"
- name: Python Black Check
run: |
black --line-length=100 --check .
- name: Test with pytest
env:
TEST_KEYVAULT_NAME: ${{ secrets.TEST_KEYVAULT_NAME }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
pytest keyvault