Skip to content

Commit e51e42f

Browse files
committed
Fiddle around with CI/CD #6
1 parent 0cfbaae commit e51e42f

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.env.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Splunk host (default: localhost)
2+
host=localhost
3+
# Splunk admin port (default: 8089)
4+
port=8089
5+
# Splunk username
6+
username=admin
7+
# Splunk password
8+
password=changed!
9+
# Access scheme (default: https)
10+
scheme=https
11+
# Your version of Splunk (default: 6.2)
12+
version=9.4
13+
# Bearer token for authentication
14+
#splunkToken="<Bearer-token>"
15+
# Session key for authentication
16+
#token="<Session-Key>"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
python-version: 3.9
1717
- name: Install dependencies
18-
run: pip install ".[dev]"
18+
run: pip install .
1919
- name: Build package
2020
run: python -m build
2121
- name: Publish package to PyPI

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ jobs:
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v3
32-
- name: Run docker compose
32+
- name: Set up .env
33+
run: cp ./.env.template ./.env
34+
- name: Run docker-compose
3335
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
34-
- name: Setup Python
36+
- name: Setup Python ${{ matrix.python }}
3537
uses: actions/setup-python@v4
3638
with:
3739
python-version: ${{ matrix.python }}
3840
- name: Install dependencies
39-
run: pip install ".[dev]"
40-
- name: Test Execution
41+
run: pip install .
42+
- name: Run test suite
4143
run: tox -e py
4244

4345
# fossa-scan:

0 commit comments

Comments
 (0)