Skip to content

Commit 58f9cfe

Browse files
committed
Fiddle around with CI/CD #2
1 parent 028f741 commit 58f9cfe

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v4
1515
with:
16-
python-version: 3.7
16+
python-version: 3.9
1717
- name: Install dependencies
18-
run: pip install twine
18+
run: pip install .[dev]
1919
- name: Build package
20-
run: python setup.py sdist
20+
run: python -m build
2121
- name: Publish package to PyPI
2222
uses: pypa/[email protected]
2323
with:
2424
user: __token__
2525
password: ${{ secrets.PYPI_PASSWORD }}
26-
- name: Install tox
27-
run: pip install tox
2826
- name: Generate API docs
2927
run: |
3028
rm -rf ./docs/_build

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
- ubuntu-latest
1212
python: [3.9, 3.13]
1313
splunk-version:
14-
- "8.1"
15-
- "8.2"
14+
- "9.3"
15+
- "9.4"
1616
- "latest"
1717
include:
1818
- os: ubuntu-22.04
@@ -22,28 +22,24 @@ jobs:
2222
python: 3.7
2323
splunk-version: "8.2"
2424
- os: ubuntu-22.04
25-
python: 3.7
25+
python: 3.9
2626
splunk-version: "latest"
27-
2827
fail-fast: false
2928

3029
steps:
3130
- name: Checkout code
3231
uses: actions/checkout@v3
33-
3432
- name: Run docker compose
3533
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
36-
3734
- name: Setup Python
3835
uses: actions/setup-python@v4
3936
with:
4037
python-version: ${{ matrix.python }}
41-
4238
- name: Install tox
43-
run: pip install .[dev]
44-
39+
run: pip install -e ".[dev]"
4540
- name: Test Execution
4641
run: tox -e py
42+
4743
fossa-scan:
4844
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
4945
secrets: inherit

0 commit comments

Comments
 (0)