From e83c3cf226831ea6e67a323d90960dc0bab8deb6 Mon Sep 17 00:00:00 2001 From: Bryce Larson Date: Tue, 8 Dec 2020 22:22:46 +0000 Subject: [PATCH] only run gentoo on branch, black everything --- .github/workflows/main-branch-only.yml | 1112 +++++++++++++++++ .github/workflows/main.yml | 1104 ---------------- .../scripts/update-release-shasum.py | 2 +- .github/workflows/templates/generate.py | 283 +++-- .github/workflows/templates/linux.yml | 2 +- .github/workflows/templates/main.yml | 4 +- .kitchen.yml | 2 + .pre-commit-config.yaml | 5 + tests/conftest.py | 32 +- tests/integration/test_installation.py | 6 +- 10 files changed, 1307 insertions(+), 1245 deletions(-) create mode 100644 .github/workflows/main-branch-only.yml diff --git a/.github/workflows/main-branch-only.yml b/.github/workflows/main-branch-only.yml new file mode 100644 index 0000000..d04e1bc --- /dev/null +++ b/.github/workflows/main-branch-only.yml @@ -0,0 +1,1112 @@ +# DO NOT EDIT THIS FILE DIRECTLY! +# +# This file was generated by .github/workflows/templates/generate.py + +name: Branch Testing + +on: [push] + +jobs: + + py3-stable-2019-2-gentoo: + name: Gentoo v2019.2 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-2019-2-gentoo || bundle exec kitchen create py3-stable-2019-2-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-2019-2-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-2019-2-gentoo + + + py3-git-2019-2-gentoo: + name: Gentoo v2019.2 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-2019-2-gentoo || bundle exec kitchen create py3-git-2019-2-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-2019-2-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-2019-2-gentoo + + + py3-stable-3000-gentoo: + name: Gentoo v3000 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3000-gentoo || bundle exec kitchen create py3-stable-3000-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3000-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3000-gentoo + + + py3-git-3000-gentoo: + name: Gentoo v3000 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-3000-gentoo || bundle exec kitchen create py3-git-3000-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3000-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3000-gentoo + + + py3-stable-3001-gentoo: + name: Gentoo v3001 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3001-gentoo || bundle exec kitchen create py3-stable-3001-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-gentoo + + + py3-git-3001-gentoo: + name: Gentoo v3001 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-3001-gentoo || bundle exec kitchen create py3-git-3001-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3001-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3001-gentoo + + + py3-stable-3001-0-gentoo: + name: Gentoo v3001.0 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3001-0-gentoo || bundle exec kitchen create py3-stable-3001-0-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-0-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-0-gentoo + + + py3-stable-3002-gentoo: + name: Gentoo v3002 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3002-gentoo || bundle exec kitchen create py3-stable-3002-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-gentoo + + + py3-git-3002-gentoo: + name: Gentoo v3002 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo || bundle exec kitchen create py3-git-3002-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3002-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3002-gentoo + + + py3-stable-3002-0-gentoo: + name: Gentoo v3002.0 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3002-0-gentoo || bundle exec kitchen create py3-stable-3002-0-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-0-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-0-gentoo + + + py3-git-master-gentoo: + name: Gentoo Master Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo || bundle exec kitchen create py3-git-master-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-master-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-master-gentoo + + + latest-gentoo: + name: Gentoo Latest packaged release + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo || bundle exec kitchen create latest-gentoo + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify latest-gentoo + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy latest-gentoo + + + py3-stable-2019-2-gentoo-systemd: + name: Gentoo (systemd) v2019.2 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-2019-2-gentoo-systemd || bundle exec kitchen create py3-stable-2019-2-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-2019-2-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-2019-2-gentoo-systemd + + + py3-git-2019-2-gentoo-systemd: + name: Gentoo (systemd) v2019.2 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-2019-2-gentoo-systemd || bundle exec kitchen create py3-git-2019-2-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-2019-2-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-2019-2-gentoo-systemd + + + py3-stable-3000-gentoo-systemd: + name: Gentoo (systemd) v3000 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3000-gentoo-systemd || bundle exec kitchen create py3-stable-3000-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3000-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3000-gentoo-systemd + + + py3-git-3000-gentoo-systemd: + name: Gentoo (systemd) v3000 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-3000-gentoo-systemd || bundle exec kitchen create py3-git-3000-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3000-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3000-gentoo-systemd + + + py3-stable-3001-gentoo-systemd: + name: Gentoo (systemd) v3001 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3001-gentoo-systemd || bundle exec kitchen create py3-stable-3001-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-gentoo-systemd + + + py3-git-3001-gentoo-systemd: + name: Gentoo (systemd) v3001 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-3001-gentoo-systemd || bundle exec kitchen create py3-git-3001-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3001-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3001-gentoo-systemd + + + py3-stable-3001-0-gentoo-systemd: + name: Gentoo (systemd) v3001.0 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3001-0-gentoo-systemd || bundle exec kitchen create py3-stable-3001-0-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-0-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-0-gentoo-systemd + + + py3-stable-3002-gentoo-systemd: + name: Gentoo (systemd) v3002 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3002-gentoo-systemd || bundle exec kitchen create py3-stable-3002-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-gentoo-systemd + + + py3-git-3002-gentoo-systemd: + name: Gentoo (systemd) v3002 Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo-systemd || bundle exec kitchen create py3-git-3002-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3002-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3002-gentoo-systemd + + + py3-stable-3002-0-gentoo-systemd: + name: Gentoo (systemd) v3002.0 Py3 Stable + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-stable-3002-0-gentoo-systemd || bundle exec kitchen create py3-stable-3002-0-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-0-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-0-gentoo-systemd + + + py3-git-master-gentoo-systemd: + name: Gentoo (systemd) Master Py3 Git + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo-systemd || bundle exec kitchen create py3-git-master-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-master-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-master-gentoo-systemd + + + latest-gentoo-systemd: + name: Gentoo (systemd) Latest packaged release + runs-on: ubuntu-latest + timeout-minutes: 50 + + + + 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-gentoo-systemd || bundle exec kitchen create latest-gentoo-systemd + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify latest-gentoo-systemd + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy latest-gentoo-systemd diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3f7b37..2a26233 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3632,1110 +3632,6 @@ jobs: bundle exec kitchen destroy latest-fedora-33 - py3-stable-2019-2-gentoo: - name: Gentoo v2019.2 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-2019-2-gentoo || bundle exec kitchen create py3-stable-2019-2-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-2019-2-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-2019-2-gentoo - - - py3-git-2019-2-gentoo: - name: Gentoo v2019.2 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-2019-2-gentoo || bundle exec kitchen create py3-git-2019-2-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-2019-2-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-2019-2-gentoo - - - py3-stable-3000-gentoo: - name: Gentoo v3000 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3000-gentoo || bundle exec kitchen create py3-stable-3000-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3000-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3000-gentoo - - - py3-git-3000-gentoo: - name: Gentoo v3000 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-3000-gentoo || bundle exec kitchen create py3-git-3000-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3000-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3000-gentoo - - - py3-stable-3001-gentoo: - name: Gentoo v3001 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3001-gentoo || bundle exec kitchen create py3-stable-3001-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3001-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3001-gentoo - - - py3-git-3001-gentoo: - name: Gentoo v3001 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-3001-gentoo || bundle exec kitchen create py3-git-3001-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3001-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3001-gentoo - - - py3-stable-3001-0-gentoo: - name: Gentoo v3001.0 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3001-0-gentoo || bundle exec kitchen create py3-stable-3001-0-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3001-0-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3001-0-gentoo - - - py3-stable-3002-gentoo: - name: Gentoo v3002 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3002-gentoo || bundle exec kitchen create py3-stable-3002-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3002-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3002-gentoo - - - py3-git-3002-gentoo: - name: Gentoo v3002 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo || bundle exec kitchen create py3-git-3002-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3002-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3002-gentoo - - - py3-stable-3002-0-gentoo: - name: Gentoo v3002.0 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3002-0-gentoo || bundle exec kitchen create py3-stable-3002-0-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3002-0-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3002-0-gentoo - - - py3-git-master-gentoo: - name: Gentoo Master Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo || bundle exec kitchen create py3-git-master-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-master-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-master-gentoo - - - latest-gentoo: - name: Gentoo Latest packaged release - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo || bundle exec kitchen create latest-gentoo - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify latest-gentoo - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy latest-gentoo - - - py3-stable-2019-2-gentoo-systemd: - name: Gentoo (systemd) v2019.2 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-2019-2-gentoo-systemd || bundle exec kitchen create py3-stable-2019-2-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-2019-2-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-2019-2-gentoo-systemd - - - py3-git-2019-2-gentoo-systemd: - name: Gentoo (systemd) v2019.2 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-2019-2-gentoo-systemd || bundle exec kitchen create py3-git-2019-2-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-2019-2-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-2019-2-gentoo-systemd - - - py3-stable-3000-gentoo-systemd: - name: Gentoo (systemd) v3000 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3000-gentoo-systemd || bundle exec kitchen create py3-stable-3000-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3000-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3000-gentoo-systemd - - - py3-git-3000-gentoo-systemd: - name: Gentoo (systemd) v3000 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-3000-gentoo-systemd || bundle exec kitchen create py3-git-3000-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3000-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3000-gentoo-systemd - - - py3-stable-3001-gentoo-systemd: - name: Gentoo (systemd) v3001 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3001-gentoo-systemd || bundle exec kitchen create py3-stable-3001-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3001-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3001-gentoo-systemd - - - py3-git-3001-gentoo-systemd: - name: Gentoo (systemd) v3001 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-3001-gentoo-systemd || bundle exec kitchen create py3-git-3001-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3001-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3001-gentoo-systemd - - - py3-stable-3001-0-gentoo-systemd: - name: Gentoo (systemd) v3001.0 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3001-0-gentoo-systemd || bundle exec kitchen create py3-stable-3001-0-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3001-0-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3001-0-gentoo-systemd - - - py3-stable-3002-gentoo-systemd: - name: Gentoo (systemd) v3002 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3002-gentoo-systemd || bundle exec kitchen create py3-stable-3002-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3002-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3002-gentoo-systemd - - - py3-git-3002-gentoo-systemd: - name: Gentoo (systemd) v3002 Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo-systemd || bundle exec kitchen create py3-git-3002-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-3002-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-3002-gentoo-systemd - - - py3-stable-3002-0-gentoo-systemd: - name: Gentoo (systemd) v3002.0 Py3 Stable - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-stable-3002-0-gentoo-systemd || bundle exec kitchen create py3-stable-3002-0-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-stable-3002-0-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-stable-3002-0-gentoo-systemd - - - py3-git-master-gentoo-systemd: - name: Gentoo (systemd) Master Py3 Git - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo-systemd || bundle exec kitchen create py3-git-master-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify py3-git-master-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy py3-git-master-gentoo-systemd - - - latest-gentoo-systemd: - name: Gentoo (systemd) Latest packaged release - runs-on: ubuntu-latest - timeout-minutes: 50 - - 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-gentoo-systemd || bundle exec kitchen create latest-gentoo-systemd - - - name: Test Bootstrap In Test Container - run: | - bundle exec kitchen verify latest-gentoo-systemd - - - name: Destroy Test Container - if: always() - run: | - bundle exec kitchen destroy latest-gentoo-systemd - - py3-git-2019-2-opensuse-15: name: Opensuse 15 v2019.2 Py3 Git runs-on: ubuntu-latest diff --git a/.github/workflows/scripts/update-release-shasum.py b/.github/workflows/scripts/update-release-shasum.py index fefde64..60a6600 100644 --- a/.github/workflows/scripts/update-release-shasum.py +++ b/.github/workflows/scripts/update-release-shasum.py @@ -33,5 +33,5 @@ def main(version, sha256sum): README_PATH.write_text(out_contents) -if __name__ == '__main__': +if __name__ == "__main__": main(sys.argv[1], sys.argv[2]) diff --git a/.github/workflows/templates/generate.py b/.github/workflows/templates/generate.py index 695ff3b..96d1caa 100755 --- a/.github/workflows/templates/generate.py +++ b/.github/workflows/templates/generate.py @@ -6,170 +6,186 @@ import datetime os.chdir(os.path.abspath(os.path.dirname(__file__))) LINUX_DISTROS = [ -# 'amazon-1', - 'amazon-2', - 'arch', - 'centos-7', - 'centos-8', - 'debian-10', - 'debian-9', - 'fedora-32', - 'fedora-33', - 'gentoo', - 'gentoo-systemd', - 'opensuse-15', - 'ubuntu-1604', - 'ubuntu-1804', - 'ubuntu-2004', + #'amazon-1', + "amazon-2", + "arch", + "centos-7", + "centos-8", + "debian-10", + "debian-9", + "fedora-32", + "fedora-33", + "gentoo", + "gentoo-systemd", + "opensuse-15", + "ubuntu-1604", + "ubuntu-1804", + "ubuntu-2004", ] OSX = WINDOWS = [] STABLE_DISTROS = [ - 'amazon-1', - 'amazon-2', - 'centos-7', - 'centos-8', - 'debian-10', - 'debian-9', - 'fedora-32', - 'fedora-33', - 'gentoo', - 'gentoo-systemd', - 'ubuntu-1604', - 'ubuntu-1804', - 'ubuntu-2004', + "amazon-1", + "amazon-2", + "centos-7", + "centos-8", + "debian-10", + "debian-9", + "fedora-32", + "fedora-33", + "gentoo", + "gentoo-systemd", + "ubuntu-1604", + "ubuntu-1804", + "ubuntu-2004", ] PY2_BLACKLIST = [ - 'centos-8', - 'debian-10', - 'fedora-32', - 'fedora-33', - 'gentoo', - 'gentoo-systemd', - 'opensuse-15', - 'ubuntu-2004', + "centos-8", + "debian-10", + "fedora-32", + "fedora-33", + "gentoo", + "gentoo-systemd", + "opensuse-15", + "ubuntu-2004", ] PY3_BLACKLIST = [ - 'amazon-1', + "amazon-1", ] BLACKLIST_2019 = [ - 'fedora-33', - 'ubuntu-2004', + "fedora-33", + "ubuntu-2004", ] BLACKLIST_3000 = [ - 'fedora-33', - 'ubuntu-2004', + "fedora-33", + "ubuntu-2004", ] SALT_BRANCHES = [ - '2019-2', - '3000', - '3001', - '3001-0', - '3002', - '3002-0', - 'master', - 'latest' + "2019-2", + "3000", + "3001", + "3001-0", + "3002", + "3002-0", + "master", + "latest", ] BRANCH_DISPLAY_NAMES = { - '2019-2': 'v2019.2', - '3000': 'v3000', - '3001': 'v3001', - '3001-0': 'v3001.0', - '3002': 'v3002', - '3002-0': 'v3002.0', - 'master': 'Master', - 'latest': 'Latest' + "2019-2": "v2019.2", + "3000": "v3000", + "3001": "v3001", + "3001-0": "v3001.0", + "3002": "v3002", + "3002-0": "v3002.0", + "master": "Master", + "latest": "Latest", } -STABLE_BRANCH_BLACKLIST = [ -] +STABLE_BRANCH_BLACKLIST = [] LATEST_PKG_BLACKLIST = [ - 'arch', # No packages are built + "arch", # No packages are built ] DISTRO_DISPLAY_NAMES = { - 'amazon-1': 'Amazon 1', - 'amazon-2': 'Amazon 2', - 'arch': 'Arch', - 'centos-7': 'CentOS 7', - 'centos-8': 'CentOS 8', - 'debian-10': 'Debian 10', - 'debian-9': 'Debian 9', - 'fedora-32': 'Fedora 32', - 'fedora-33': 'Fedora 33', - 'gentoo': 'Gentoo', - 'gentoo-systemd': 'Gentoo (systemd)', - 'opensuse-15': 'Opensuse 15', - 'ubuntu-1604': 'Ubuntu 16.04', - 'ubuntu-1804': 'Ubuntu 18.04', - 'ubuntu-2004': 'Ubuntu 20.04', + "amazon-1": "Amazon 1", + "amazon-2": "Amazon 2", + "arch": "Arch", + "centos-7": "CentOS 7", + "centos-8": "CentOS 8", + "debian-10": "Debian 10", + "debian-9": "Debian 9", + "fedora-32": "Fedora 32", + "fedora-33": "Fedora 33", + "gentoo": "Gentoo", + "gentoo-systemd": "Gentoo (systemd)", + "opensuse-15": "Opensuse 15", + "ubuntu-1604": "Ubuntu 16.04", + "ubuntu-1804": "Ubuntu 18.04", + "ubuntu-2004": "Ubuntu 20.04", } TIMEOUT_DEFAULT = 20 TIMEOUT_OVERRIDES = { - 'gentoo': 50, - 'gentoo-systemd': 50, + "gentoo": 50, + "gentoo-systemd": 50, } +BRANCH_ONLY_OVERRIDES = [ + "gentoo", + "gentoo-systemd", +] + def generate_test_jobs(): - test_jobs = '' + test_jobs = "" + branch_only_test_jobs = "" for distro in LINUX_DISTROS + OSX + WINDOWS: - timeout_minutes = TIMEOUT_OVERRIDES[distro] if distro in TIMEOUT_OVERRIDES else TIMEOUT_DEFAULT + timeout_minutes = ( + TIMEOUT_OVERRIDES[distro] + if distro in TIMEOUT_OVERRIDES + else TIMEOUT_DEFAULT + ) + needs = " needs: lint" + if distro in BRANCH_ONLY_OVERRIDES: + needs = "" + current_test_jobs = "" for branch in SALT_BRANCHES: - if branch == 'latest': + if branch == "latest": if distro in LATEST_PKG_BLACKLIST: continue if distro in LINUX_DISTROS: - template = 'linux.yml' + template = "linux.yml" elif distro in OSX: - template = 'osx.yml' + template = "osx.yml" elif distro in WINDOWS: - template = 'windows.yml' + template = "windows.yml" else: print("Don't know how to handle {}".format(distro)) with open(template) as rfh: - test_jobs += '\n{}\n'.format( - rfh.read().replace( - '{python_version}-{bootstrap_type}-{branch}-{distro}', - '{branch}-{distro}' - ).format( + current_test_jobs += "\n{}\n".format( + rfh.read() + .replace( + "{python_version}-{bootstrap_type}-{branch}-{distro}", + "{branch}-{distro}", + ) + .format( distro=distro, branch=branch, - display_name='{} Latest packaged release'.format( + display_name="{} Latest packaged release".format( DISTRO_DISPLAY_NAMES[distro], ), - timeout_minutes=timeout_minutes + timeout_minutes=timeout_minutes, + needs=needs, ) ) continue - for python_version in ('py2', 'py3'): + for python_version in ("py2", "py3"): - if branch == 'master' and python_version == 'py2': + if branch == "master" and python_version == "py2": # Salt's master branch no longer supports Python 2 continue try: - if int(branch.split('-')[0]) >= 3000 and python_version == 'py2': + if int(branch.split("-")[0]) >= 3000 and python_version == "py2": # Salt's 300X versions no longer supports Python 2 continue except ValueError: pass - for bootstrap_type in ('stable', 'git'): - if bootstrap_type == 'stable': - if branch == 'master': + for bootstrap_type in ("stable", "git"): + if bootstrap_type == "stable": + if branch == "master": # For the master branch there's no stable build continue if distro not in STABLE_DISTROS: @@ -184,7 +200,7 @@ def generate_test_jobs(): if bootstrap_type == "git": # .0 versions are a virtual version for pinning to the first point release of a major release, such as 3001, there is no git version. - if branch.endswith('-0'): + if branch.endswith("-0"): continue if python_version == "py3": @@ -199,64 +215,85 @@ def generate_test_jobs(): if branch not in allowed_branches: # Arch and Fedora default to py3.8 continue - if branch == '2019-2' and distro in BLACKLIST_2019: + if branch == "2019-2" and distro in BLACKLIST_2019: continue - if branch == '3000' and distro in BLACKLIST_3000: + if branch == "3000" and distro in BLACKLIST_3000: continue - if python_version == 'py2' and distro in PY2_BLACKLIST: + if python_version == "py2" and distro in PY2_BLACKLIST: continue - if python_version == 'py3' and distro in PY3_BLACKLIST: + if python_version == "py3" and distro in PY3_BLACKLIST: continue if distro in LINUX_DISTROS: - template = 'linux.yml' + template = "linux.yml" elif distro in OSX: - template = 'osx.yml' + template = "osx.yml" elif distro in WINDOWS: - template = 'windows.yml' + template = "windows.yml" else: print("Don't know how to handle {}".format(distro)) with open(template) as rfh: - test_jobs += '\n{}\n'.format( + current_test_jobs += "\n{}\n".format( rfh.read().format( distro=distro, branch=branch, python_version=python_version, bootstrap_type=bootstrap_type, - display_name='{} {} {} {}'.format( + display_name="{} {} {} {}".format( DISTRO_DISPLAY_NAMES[distro], BRANCH_DISPLAY_NAMES[branch], python_version.capitalize(), - bootstrap_type.capitalize() + bootstrap_type.capitalize(), ), - timeout_minutes=timeout_minutes + timeout_minutes=timeout_minutes, + needs=needs, ) ) + if distro in BRANCH_ONLY_OVERRIDES: + branch_only_test_jobs += current_test_jobs + else: + test_jobs += current_test_jobs - with open('lint.yml') as rfh: - lint_job = '\n{}\n'.format(rfh.read()) + with open("lint.yml") as rfh: + lint_job = "\n{}\n".format(rfh.read()) - with open('pre-commit.yml') as rfh: - pre_commit_job = '\n{}\n'.format(rfh.read()) + with open("pre-commit.yml") as rfh: + pre_commit_job = "\n{}\n".format(rfh.read()) - with open('../main.yml', 'w') as wfh: - with open('main.yml') as rfh: + with open("../main.yml", "w") as wfh: + with open("main.yml") as rfh: wfh.write( - '{}\n'.format( - rfh.read().format( - jobs='{pre_commit}{lint}{test}'.format( - lint=lint_job, - test=test_jobs, - pre_commit=pre_commit_job, - ) - ).strip() + "{}\n".format( + rfh.read() + .format( + jobs="{pre_commit}{lint}{test}".format( + lint=lint_job, test=test_jobs, pre_commit=pre_commit_job, + ), + on="push, pull_request", + name="Testing", + ) + .strip() + ) + ) + + with open("../main-branch-only.yml", "w") as wfh: + with open("main.yml") as rfh: + wfh.write( + "{}\n".format( + rfh.read() + .format( + jobs="{test}".format(test=branch_only_test_jobs,), + on="push", + name="Branch Testing", + ) + .strip() ) ) -if __name__ == '__main__': +if __name__ == "__main__": generate_test_jobs() diff --git a/.github/workflows/templates/linux.yml b/.github/workflows/templates/linux.yml index 51e000d..e956676 100644 --- a/.github/workflows/templates/linux.yml +++ b/.github/workflows/templates/linux.yml @@ -3,7 +3,7 @@ runs-on: ubuntu-latest timeout-minutes: {timeout_minutes} - needs: lint +{needs} steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/templates/main.yml b/.github/workflows/templates/main.yml index 1ad20c3..327536c 100644 --- a/.github/workflows/templates/main.yml +++ b/.github/workflows/templates/main.yml @@ -2,9 +2,9 @@ # # This file was generated by .github/workflows/templates/generate.py -name: Testing +name: {name} -on: [push, pull_request] +on: [{on}] jobs: {jobs} diff --git a/.kitchen.yml b/.kitchen.yml index a12ae12..a95aff0 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -82,12 +82,14 @@ platforms: run_command: /sbin/init provision_command: - rc-update add sshd default + - emerge --update --deep --with-bdeps=y --newuse @world - name: gentoo-systemd driver_config: image: gentoo/stage3:systemd run_command: /lib/systemd/systemd provision_command: - systemctl enable sshd.service + - emerge --update --deep --with-bdeps=y --newuse @world - name: opensuse-15 driver_config: image: opensuse/leap:15.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d285259..c48dae6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,11 @@ repos: args: [--fix=lf] - id: end-of-file-fixer # Makes sure files end in a newline and only a newline. + - repo: https://github.com/psf/black + rev: 19.10b0 + hooks: + - id: black + - repo: local hooks: - id: generate-actions-workflow diff --git a/tests/conftest.py b/tests/conftest.py index a5e262f..5f0e1b6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,28 +7,38 @@ import logging log = logging.getLogger(__name__) -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def host(): - if os.environ.get('KITCHEN_USERNAME') == 'vagrant': - if 'windows' in os.environ.get('KITCHEN_INSTANCE'): + if os.environ.get("KITCHEN_USERNAME") == "vagrant": + if "windows" in os.environ.get("KITCHEN_INSTANCE"): return testinfra.get_host( - 'winrm://{KITCHEN_USERNAME}:{KITCHEN_PASSWORD}@{KITCHEN_HOSTNAME}:{KITCHEN_PORT}'.format(**os.environ), - no_ssl=True) + "winrm://{KITCHEN_USERNAME}:{KITCHEN_PASSWORD}@{KITCHEN_HOSTNAME}:{KITCHEN_PORT}".format( + **os.environ + ), + no_ssl=True, + ) return testinfra.get_host( - 'paramiko://{KITCHEN_USERNAME}@{KITCHEN_HOSTNAME}:{KITCHEN_PORT}'.format(**os.environ), - ssh_identity_file=os.environ.get('KITCHEN_SSH_KEY')) - return testinfra.get_host('docker://{KITCHEN_USERNAME}@{KITCHEN_CONTAINER_ID}'.format(**os.environ)) + "paramiko://{KITCHEN_USERNAME}@{KITCHEN_HOSTNAME}:{KITCHEN_PORT}".format( + **os.environ + ), + ssh_identity_file=os.environ.get("KITCHEN_SSH_KEY"), + ) + return testinfra.get_host( + "docker://{KITCHEN_USERNAME}@{KITCHEN_CONTAINER_ID}".format(**os.environ) + ) -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def target_python_version(): target_python = os.environ["KITCHEN_SUITE"].split("-", 1)[0] if target_python == "latest": - pytest.skip("Unable to get target python from {}".format(os.environ["KITCHEN_SUITE"])) + pytest.skip( + "Unable to get target python from {}".format(os.environ["KITCHEN_SUITE"]) + ) return int(target_python.replace("py", "")) -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def target_salt_version(): target_salt = os.environ["KITCHEN_SUITE"].split("-", 2)[-1].replace("-", ".") if target_salt.endswith(".0") and float(target_salt) >= 3000: diff --git a/tests/integration/test_installation.py b/tests/integration/test_installation.py index 07112e0..81ed135 100644 --- a/tests/integration/test_installation.py +++ b/tests/integration/test_installation.py @@ -9,16 +9,16 @@ log = logging.getLogger(__name__) def test_ping(host): with host.sudo(): - assert host.salt('test.ping', '--timeout=120') + assert host.salt("test.ping", "--timeout=120") def test_target_python_version(host, target_python_version): with host.sudo(): - ret = host.salt('grains.item', 'pythonversion', '--timeout=120') + ret = host.salt("grains.item", "pythonversion", "--timeout=120") assert ret["pythonversion"][0] == target_python_version def test_target_salt_version(host, target_salt_version): with host.sudo(): - ret = host.salt('grains.item', 'saltversion', '--timeout=120') + ret = host.salt("grains.item", "saltversion", "--timeout=120") assert ret["saltversion"].startswith(target_salt_version)