Skip to content

add NewClient function to netbox package #1204

add NewClient function to netbox package

add NewClient function to netbox package #1204

Workflow file for this run

#
# MIT License
#
# (C) Copyright 2022-2023 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
name: shellspec (unit and integration tests)
on:
push:
workflow_dispatch:
jobs:
shellspec:
strategy:
matrix:
os: [ubuntu-latest] # no macos for now; docker install takes too long and causes issues but steps in the flow remain if situation improves
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: checkout hms-simulation-environment
uses: actions/checkout@v3
with:
path: hms-simulation-environment
repository: Cray-HPE/hms-simulation-environment
ref: v1
fetch-depth: 0
- name: checkout shellspec
uses: actions/checkout@v3
with:
path: shellspec
repository: shellspec/shellspec
fetch-depth: 0
- name: set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: install python dependencies
run: pip3 install -r requirements.txt
- if: ${{ matrix.os == 'macos-latest' }}
name: install docker for macos
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask docker
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app --args --unattended --accept-license
echo "waiting for Docker to start...this can take a while on github runners"
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
- name: login to algol60 container registry
uses: docker/login-action@v2
with:
registry: artifactory.algol60.net
username: ${{ secrets.ARTIFACTORY_ALGOL60_USERNAME }}
password: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }}
- name: standup simulation environment
id: setup-simulation-environment
continue-on-error: false
shell: bash
run: |
make load-sls
- name: Run shellspec
shell: bash
run: |
ln -s "$PWD"/shellspec/shellspec /usr/local/bin/
make test