Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AIO tests + PyLint on PR #6

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
58 changes: 58 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Pull request
on:
pull_request:
jobs:
build-kayobe-image:
name: Build Kayobe Image
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-build-kayobe-image.yml@parameterise-aio-tests #todo: change after merge
with:
repository: stackhpc/stackhpc-kayobe-config

rocky9-ovs-aio-test:
name: aio (Rocky 9 OVS)
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@parameterise-aio-tests # todo: change after merge
needs: build-kayobe-image
with:
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
os_distribution: rocky
os_release: "9"
ssh_username: cloud-user
neutron_plugin: ovs
OS_CLOUD: openstack
stackhpc_cloud_tests_version: ${{ github.ref }}
repository: stackhpc/stackhpc-kayobe-config
secrets: inherit

ubuntu-jammy-ovn-aio-test:
name: aio (Ubuntu Jammy OVN)
needs: build-kayobe-image
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@parameterise-aio-tests # todo: change after merge
with:
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
os_distribution: ubuntu
os_release: jammy
ssh_username: ubuntu
neutron_plugin: ovn
OS_CLOUD: openstack
stackhpc_cloud_tests_version: ${{ github.ref }}
repository: stackhpc/stackhpc-kayobe-config
secrets: inherit

lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install pip dependencies
run: pip install -r requirements.txt

- name: Run pylint
run: |
set +e # disabling exit on non-zero error code so can output warnings without failing
pylint stackhpc_cloud_tests/*.py
EXIT_CODE=$?
set -e
if [[ $(($EXIT_CODE & 3)) > 0 ]] #bitwise check for pylint exit codes which indicate errors (01 and 10) https://pylint.readthedocs.io/en/latest/user_guide/usage/run.html#exit-codes
then
exit 1
fi
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
opensearch-py==2.5.*
prometheus-api-client==0.5.*
pytest-testinfra==10.1.*
pylint==3.3.*
Loading