diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml index d55d5c5e69c..ddef9f6c527 100644 --- a/.github/workflows/python_build.yml +++ b/.github/workflows/python_build.yml @@ -17,6 +17,9 @@ jobs: max-parallel: 4 matrix: python-version: [3.6, 3.7, 3.8] + env: + OS: ${{ matrix.os }} + PYTHON: ${{ matrix.python-version }} steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} @@ -33,3 +36,11 @@ jobs: run: make security-baseline - name: Complexity baseline run: make complexity-baseline + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.xml + # flags: unittests + env_vars: OS,PYTHON + name: aws-lambda-powertools-python-codecov + fail_ci_if_error: true diff --git a/Makefile b/Makefile index e65537b1464..9843432be04 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ lint: format poetry run flake8 test: - poetry run pytest -vvv + poetry run pytest -vvv --cov=./ --cov-report=xml coverage-html: poetry run pytest --cov-report html