Skip to content
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
22 changes: 0 additions & 22 deletions .github/workflows/main.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/package_runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Package Runner

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Docker Publish
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: docker.pkg.github.com
name: docker.pkg.github.com/splunk/pytest-splunk-addon/pytest-splunk-addon
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

snapshot: true
tags: master

34 changes: 0 additions & 34 deletions .github/workflows/pythonpackage.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/review_dog_misspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Review Misspell

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run misspell with reviewdog
uses: reviewdog/action-misspell@v1.0.0
with:
# GITHUB_TOKEN.
github_token: ${{ secrets.GITHUB_TOKEN }}
# # -locale flag of misspell. (US/UK)
# locale: # optional, default is
# # Report level for reviewdog [info,warning,error]
# level: # optional, default is error
29 changes: 29 additions & 0 deletions .github/workflows/review_flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Review FLAKE8

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up OS=${{ matrix.os }}::Python=${{ matrix.python-version }}::Splunk=${{ matrix.splunk-version }}
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install .
- name: Install FLAKE8
run: |
pip install flake8

- name: Run flake8 on your PR - with annotations!
uses: suo/flake8-github-action@v1
with:
checkName: Review FLAKE8
32 changes: 32 additions & 0 deletions .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test Matrix

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7]
splunk-version: [7.2,7.3,8.0,edge]

steps:
- uses: actions/checkout@v2
- name: Set up OS=${{ matrix.os }}::Python=${{ matrix.python-version }}::Splunk=${{ matrix.splunk-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install .
- name: Test with pytest
run: |
pip install pytest
pytest -v --splunk_version=${{ matrix.splunk-version }}

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version: "3.7"
services:

splunk:
image: splunk/splunk:8.0.1
image: splunk/splunk:${SPLUNK_VERSION}
hostname: splunk
ports:
- "8000:8000"
Expand Down
Loading