Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
Comment thread
cecyliaborek marked this conversation as resolved.
Outdated
with:
python-version: 3.7
- name: Install dependencies
run: pip install twine
- name: Build package
run: python setup.py sdist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.10
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
with:
user: __token__
password: ${{ secrets.pypi_password }}
Expand All @@ -29,14 +29,14 @@ jobs:
run: |
rm -rf ./docs/_build
tox -e docs
- name : Docs Upload
uses: actions/upload-artifact@v3
- name: Docs Upload
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: python_sdk_docs
path: docs/_build/html
# Test upload
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@master
# uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
# with:
# user: __token__
# password: ${{ secrets.test_pypi_password }}
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Python CI

on:
[ push, workflow_dispatch ]
on: [push, workflow_dispatch]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python: [ 3.9, 3.13 ]
python: [3.9, 3.13]
splunk-version:
- "8.1"
- "8.2"
Expand All @@ -31,13 +29,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Comment thread
Ickerday marked this conversation as resolved.
Outdated

- name: Run docker compose
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: ${{ matrix.python }}

Expand All @@ -48,4 +46,4 @@ jobs:
run: tox -e py
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
secrets: inherit
secrets: inherit
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.6'

services:
splunk:
image: "splunk/splunk:${SPLUNK_VERSION}"
Expand All @@ -11,9 +9,9 @@ services:
- SPLUNK_PASSWORD=changed!
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
ports:
- 8000:8000
- 8088:8088
- 8089:8089
- "8000:8000"
- "8088:8088"
- "8089:8089"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
interval: 5s
Expand Down