skip and reduce tracer host tests #144
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
# CI stages to execute against master branch on PR merge | |
name: update_robottelo_image | |
on: | |
push: | |
branches: | |
- 6.12.z | |
env: | |
PYCURL_SSL_LIBRARY: openssl | |
ROBOTTELO_BUGZILLA__API_KEY: ${{ secrets.BUGZILLA_KEY }} | |
jobs: | |
codechecks: | |
name: Code Quality | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout Robottelo | |
uses: actions/checkout@v3 | |
- name: Set Up Python-${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libgnutls28-dev libcurl4-openssl-dev libssl-dev | |
wget https://raw.githubusercontent.com/SatelliteQE/broker/master/broker_settings.yaml.example | |
# link vs compile time ssl implementations can break the environment when installing requirements | |
# Uninstall pycurl - its likely not installed, but in case the ubuntu-latest packages change | |
# Then compile and install it with PYCURL_SSL_LIBRARY set to openssl | |
pip install -U pip | |
pip uninstall -y pycurl | |
pip install --compile --no-cache-dir pycurl | |
pip install -U --no-cache-dir -r requirements.txt -r requirements-optional.txt | |
for conffile in conf/*.yaml.template; do mv -- "$conffile" "${conffile%.yaml.template}.yaml"; done | |
cp broker_settings.yaml.example broker_settings.yaml | |
cp .env.example .env | |
- name: Pre Commit Checks | |
uses: pre-commit/[email protected] | |
- name: Collect Tests | |
run: | | |
pytest --collect-only --disable-pytest-warnings tests/foreman/ tests/robottelo/ | |
pytest --collect-only --disable-pytest-warnings -m pre_upgrade tests/upgrades/ | |
pytest --collect-only --disable-pytest-warnings -m post_upgrade tests/upgrades/ | |
- name: Make Docs | |
run: | | |
make test-docstrings | |
make docs | |
- name: Analysis (git diff) | |
if: failure() | |
run: git diff | |
robottelo_container: | |
needs: codechecks | |
name: Update Robottelo container image on Quay. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get image tag | |
id: image_tag | |
run: | | |
echo -n ::set-output name=IMAGE_TAG:: | |
TAG="${GITHUB_REF##*/}" | |
if [ "${TAG}" == "master" ]; then | |
TAG="latest" | |
fi | |
echo "${TAG}" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Quay Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ secrets.QUAY_SERVER }} | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Build and push image to Quay | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ secrets.QUAY_SERVER }}/${{ secrets.QUAY_NAMESPACE }}/robottelo:${{ steps.image_tag.outputs.IMAGE_TAG }} |