From 4777897146071c1fe213d7ce63ce8b3e7b519a29 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 25 Jun 2021 23:28:38 +0100 Subject: [PATCH] feat(almalinux-8): add CI for platform --- .github/workflows/main.yml | 138 ++++++++++++++++++++++++ .github/workflows/templates/generate.py | 7 ++ kitchen.yml | 3 + 3 files changed, 148 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 625c034..445861b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,6 +44,144 @@ jobs: shellcheck -s sh -f tty bootstrap-salt.sh + py3-git-3002-almalinux-8: + name: AlmaLinux 8 v3002 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 20 + + needs: lint + + steps: + - uses: actions/checkout@v1 + - name: Setup Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.x + + - name: Install Bundler + run: | + gem install bundler + + - name: Setup Bundle + run: | + bundle install --with docker --without opennebula ec2 windows vagrant + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install Python Dependencies + run: | + pip install -U pip + pip install -r tests/requirements.txt + + - name: Create Test Container + run: | + bundle exec kitchen create py3-git-3002-almalinux-8 || bundle exec kitchen create py3-git-3002-almalinux-8 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3002-almalinux-8 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3002-almalinux-8 + + + py3-git-master-almalinux-8: + name: AlmaLinux 8 Master Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 20 + + needs: lint + + steps: + - uses: actions/checkout@v1 + - name: Setup Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.x + + - name: Install Bundler + run: | + gem install bundler + + - name: Setup Bundle + run: | + bundle install --with docker --without opennebula ec2 windows vagrant + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install Python Dependencies + run: | + pip install -U pip + pip install -r tests/requirements.txt + + - name: Create Test Container + run: | + bundle exec kitchen create py3-git-master-almalinux-8 || bundle exec kitchen create py3-git-master-almalinux-8 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-master-almalinux-8 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-master-almalinux-8 + + + latest-almalinux-8: + name: AlmaLinux 8 Latest packaged release + runs-on: ubuntu-latest + timeout-minutes: 20 + + needs: lint + + steps: + - uses: actions/checkout@v1 + - name: Setup Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.x + + - name: Install Bundler + run: | + gem install bundler + + - name: Setup Bundle + run: | + bundle install --with docker --without opennebula ec2 windows vagrant + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install Python Dependencies + run: | + pip install -U pip + pip install -r tests/requirements.txt + + - name: Create Test Container + run: | + bundle exec kitchen create latest-almalinux-8 || bundle exec kitchen create latest-almalinux-8 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify latest-almalinux-8 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy latest-almalinux-8 + + py3-stable-3000-amazon-2: name: Amazon 2 v3000 Py3 Stable runs-on: ubuntu-latest diff --git a/.github/workflows/templates/generate.py b/.github/workflows/templates/generate.py index 7b14b5b..e0cb317 100755 --- a/.github/workflows/templates/generate.py +++ b/.github/workflows/templates/generate.py @@ -6,6 +6,7 @@ import datetime os.chdir(os.path.abspath(os.path.dirname(__file__))) LINUX_DISTROS = [ + "almalinux-8", "amazon-2", "arch", "centos-7", @@ -49,6 +50,7 @@ STABLE_DISTROS = [ ] PY2_BLACKLIST = [ + "almalinux-8", "centos-8", "debian-10", "debian-11", @@ -66,6 +68,7 @@ PY2_BLACKLIST = [ ] BLACKLIST_3000 = [ + "almalinux-8", "debian-11", "fedora-33", "fedora-34", @@ -77,12 +80,14 @@ BLACKLIST_3000 = [ ] BLACKLIST_3001 = [ + "almalinux-8", "debian-11", "rockylinux-8", "ubuntu-2104", ] BLACKLIST_3001_0 = [ + "almalinux-8", "debian-11", "gentoo", "gentoo-systemd", @@ -91,6 +96,7 @@ BLACKLIST_3001_0 = [ ] BLACKLIST_3002_0 = [ + "almalinux-8", "debian-11", "gentoo", "gentoo-systemd", @@ -123,6 +129,7 @@ STABLE_BRANCH_BLACKLIST = [] LATEST_PKG_BLACKLIST = [] DISTRO_DISPLAY_NAMES = { + "almalinux-8": "AlmaLinux 8", "amazon-2": "Amazon 2", "arch": "Arch", "centos-7": "CentOS 7", diff --git a/kitchen.yml b/kitchen.yml index bd17be0..1181470 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -28,6 +28,9 @@ provisioner: sh -c 't=$(shuf -i 1-15 -n 1); echo Sleeping $t seconds; sleep $t' platforms: + - name: almalinux-8 + driver_config: + run_command: /usr/lib/systemd/systemd - name: amazon-2 driver_config: image: amazonlinux:2