update sdk to 0.14.1 #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Create multi-node KinD cluster | |
uses: redhat-chaos/actions/kind@main | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
architecture: 'x64' | |
- name: Install build tools | |
run: python3 -m pip install --upgrade poetry | |
- name: Test python build | |
run: poetry build | |
- name: Upload built artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: builds | |
path: dist | |
if-no-files-found: error | |
- name: Install dependencies | |
run: poetry install | |
- name: Run unit tests | |
run: poetry run python -m coverage run -a -m unittest discover -s tests -v | |
- name: Collect coverage report | |
run: | | |
poetry run python -m coverage html | |
- name: Publish coverage report to job summary | |
run: | | |
pip install html2text | |
html2text --ignore-images --ignore-links -b 0 htmlcov/index.html >> $GITHUB_STEP_SUMMARY | |
- name: Upload coverage data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: htmlcov | |
if-no-files-found: error | |
- name: Test build docker image | |
run: docker-compose build | |
- name: Run plugin | |
run: docker-compose up | |
- name: Rebuild krkn | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
uses: redhat-chaos/actions/krkn@main | |
with: | |
QUAY_USER: ${{ secrets.QUAY_USERNAME }} | |
QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }} |