diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index f603466ad..aa7643f59 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -59,29 +59,18 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install Poetry - run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - - - name: Get UI Base + - name: Install and build run: | + curl -sSL https://install.python-poetry.org | python3 - ./get-ucc-ui.sh # Puts package and schema subdirs along with NOTICE (THIRDPARTY.npm) tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/ - - name: Install Code - run: | - # shellcheck disable=SC1090 - source "$HOME/.poetry/env" poetry install - - name: Build - run: | - # shellcheck disable=SC1090 - source "$HOME/.poetry/env" poetry build - name: Ensure all UCC UI files are in the final package run: ./.github/workflows/check_ucc_ui_files.sh - name: Run Pytest with coverage run: | - # shellcheck disable=SC1090 - source "$HOME/.poetry/env" poetry run pytest --cov=./splunk_add_on_ucc_framework --cov-report=xml --junitxml=test-results/junit.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v2.1.0 @@ -168,16 +157,11 @@ jobs: with: python-version: "3.7" - name: Install Poetry - run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - - - name: Get UI Base run: | + curl -sSL https://install.python-poetry.org | python3 - ./get-ucc-ui.sh # Puts package and schema subdirs along with NOTICE (THIRDPARTY.npm) tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/ - - name: Build - run: | - # shellcheck disable=SC1090 - source "$HOME/.poetry/env" poetry build - name: Ensure all UCC UI files are in the final package run: ./.github/workflows/check_ucc_ui_files.sh