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

chore: use poetry 1.4.2 in the CI #382

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
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
44 changes: 21 additions & 23 deletions .github/workflows/build-test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ jobs:

run-unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -82,7 +80,7 @@ jobs:
python-version: 3.7
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
- name: Test with pytest
run: |
poetry install
Expand All @@ -106,7 +104,7 @@ jobs:
python-version: 3.7
- name: Install tools
run: |
curl -sSL https://install.python-poetry.org | python3 -
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
- name: Build Package
run: |
poetry install
Expand All @@ -119,24 +117,24 @@ jobs:
if: always()

prerequisites-ui-tests:
runs-on: ubuntu-latest
outputs:
ta_example_version: ${{ steps.ta-example.outputs.version }}
steps:
- name: Fetch latest version of Splunk_TA example
id: ta-example
run: |
ta_example_version=`basename $(curl -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url')`
echo "version=$ta_example_version" >> $GITHUB_OUTPUT
- name: Cache Splunk_TA example
id: cache_ta
uses: actions/cache@v3
with:
path: Splunk_TA*.spl
key: ${{ steps.ta-example.outputs.version }}
- name: Download Splunk_TA example
if: steps.cache_ta.outputs.cache-hit != 'true'
run: curl -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url' | wget -i -
runs-on: ubuntu-latest
outputs:
ta_example_version: ${{ steps.ta-example.outputs.version }}
steps:
- name: Fetch latest version of Splunk_TA example
id: ta-example
run: |
ta_example_version=`basename $(curl -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url')`
echo "version=$ta_example_version" >> $GITHUB_OUTPUT
- name: Cache Splunk_TA example
id: cache_ta
uses: actions/cache@v3
with:
path: Splunk_TA*.spl
key: ${{ steps.ta-example.outputs.version }}
- name: Download Splunk_TA example
if: steps.cache_ta.outputs.cache-hit != 'true'
run: curl -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url' | wget -i -

run-ui-tests:
needs:
Expand Down Expand Up @@ -260,7 +258,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- run: curl -sSL https://install.python-poetry.org | python3 -
- run: curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
- id: semantic
uses: splunk/[email protected]
with:
Expand Down
Loading
Loading