Skip to content

Commit

Permalink
Add CI and CD for Rally-tester scripts
Browse files Browse the repository at this point in the history
Adds Pylint and shell check for common errors against out rally script.
This commit does not resolve any warnings at this stage
  • Loading branch information
DavidFair committed Jul 13, 2023
1 parent 6133d8f commit 3451e95
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/Openstack-Rally-Tester.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Rabbit Consumer

on:
push:
branches:
- master
pull_request:
paths:
- ".github/workflows/Openstack-Rally-Tester.yaml"
- "Openstack-Rally-Tester/**"

jobs:
test_and_lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install pylint
- name: Analyse with pylint
run: |
cd OpenStack-Rally-Tester && pylint rally-extract-results.py
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: "./OpenStack-Rally-Tester"
5 changes: 5 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ jobs:
uses: psf/black@stable
with:
src: "dns_entry_checker"

- name: Openstack-Rally-Tester
uses: psf/black@stable
with:
src: "OpenStack-Rally-Tester"

0 comments on commit 3451e95

Please sign in to comment.