diff --git a/.github/workflows/dockerfile-lint.yml b/.github/workflows/dockerfile-lint.yml index 2daf0ddfbc..a363432719 100644 --- a/.github/workflows/dockerfile-lint.yml +++ b/.github/workflows/dockerfile-lint.yml @@ -8,7 +8,7 @@ on: - 'docker/release/dockerfiles/**' jobs: - test_ci: + dockerfile-lint-test_ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,7 +17,7 @@ jobs: dockerfile: 'docker/ci/dockerfiles/current/*.dockerfile' annotate: false - test_release: + dockerfile-lint-test_release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/groovy-tests.yml b/.github/workflows/groovy-tests.yml index 71007d80df..9371638f92 100644 --- a/.github/workflows/groovy-tests.yml +++ b/.github/workflows/groovy-tests.yml @@ -4,7 +4,7 @@ name: groovy-tests on: [push, pull_request] jobs: - test: + groovy-tests: runs-on: ubuntu-latest steps: - name: Setup Java diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 1d710eb937..580599ef10 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -4,7 +4,7 @@ name: python-tests on: [push, pull_request] jobs: - test: + python-tests: strategy: matrix: os: @@ -40,3 +40,30 @@ jobs: uses: codecov/codecov-action@v2 with: files: ./coverage.xml + + python-tests-build-image: + runs-on: ubuntu-latest + container: + image: public.ecr.aws/opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v2 + options: --user 1000 + steps: + - uses: actions/checkout@v3 + - name: Install Pipenv and Dependencies + run: | + pipenv install + - name: Check for Sorted Imports + run: | + pipenv run isort --check . + - name: Enforce Style Guide + run: | + pipenv run flake8 . + - name: Run Type Checker + run: | + pipenv run mypy . + - name: Run Tests with Coverage + run: | + pipenv run coverage run -m pytest --cov=./src --cov-report=xml + - name: Upload Coverage Report + uses: codecov/codecov-action@v2 + with: + files: ./coverage.xml diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 7963d657a7..0203ca1dd7 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -4,7 +4,7 @@ name: yaml-lint on: [push, pull_request] jobs: - test: + yaml-lint: runs-on: ubuntu-latest env: PYTHON_VERSION: 3.7