From d4e3000dbea4446c8f80b83cdbe9c733f222a5d9 Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 4 Jan 2024 08:47:58 +0100 Subject: [PATCH 1/5] fix: requiremrnts version for the snowdrop.cloud_infra It had the wrong version --- collections/requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collections/requirements.yml b/collections/requirements.yml index 515300f1..ec41091e 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -1,7 +1,7 @@ --- collections: - name: snowdrop.cloud_infra - version: 2.1.0 + version: 2.0.1 - name: openstack.cloud version: 2.1.0 From d0271d8459cc55a1a596ad29dd3bf6a6a696cad1 Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 4 Jan 2024 08:51:54 +0100 Subject: [PATCH 2/5] test: add verification to prevent this from happening again --- .github/workflows/pr.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5b1a8683..c40055fa 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -6,6 +6,38 @@ on: pull_request: jobs: + + install-requirements: + name: Test installation of the project requirements + runs-on: ubuntu-latest + strategy: + matrix: + python: [ 3.11 ] + steps: + - name: Checkout project + uses: actions/checkout@v3 + + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + cache: pip + + - name: Install python requirements + run: | + pip install -r requirements.txt + pip install -r molecule/requirements.txt + ansible-galaxy collection install -r requirements.yml --upgrade + + - name: Print configuration versions + run: | + pip freeze + ansible-galaxy collection list + + # - name: Run role tests + # run: | + # molecule test --scenario-name github + kind-test: name: Test Kind Deployment runs-on: ubuntu-latest From f7dfb6e0963ea304533a9589bdcbd471edd5d63f Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 4 Jan 2024 08:52:42 +0100 Subject: [PATCH 3/5] test: add verification to prevent this from happening again --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..c3d557de --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +--- +name: CI +on: + push: + +jobs: + + install-requirements: + name: Test installation of the project requirements + runs-on: ubuntu-latest + strategy: + matrix: + python: [ 3.11 ] + steps: + - name: Checkout project + uses: actions/checkout@v3 + + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + cache: pip + + - name: Install python requirements + run: | + pip install -r requirements.txt + pip install -r molecule/requirements.txt + ansible-galaxy collection install -r requirements.yml --upgrade + + - name: Print configuration versions + run: | + pip freeze + ansible-galaxy collection list + + # - name: Run role tests + # run: | + # molecule test --scenario-name github + +... From d32fe67b2c1676849b778cb65b904aa3cabc638b Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 4 Jan 2024 08:55:24 +0100 Subject: [PATCH 4/5] test: add verification to prevent this from happening again --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3d557de..aadc7135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: run: | pip install -r requirements.txt pip install -r molecule/requirements.txt - ansible-galaxy collection install -r requirements.yml --upgrade + ansible-galaxy collection install -r collections/requirements.yml --upgrade - name: Print configuration versions run: | From 0e28c4370fc3e7c5c2c5d64df2ea67ad2f325835 Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 4 Jan 2024 08:57:18 +0100 Subject: [PATCH 5/5] test: add verification to prevent this from happening again --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c40055fa..cede578e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -27,7 +27,7 @@ jobs: run: | pip install -r requirements.txt pip install -r molecule/requirements.txt - ansible-galaxy collection install -r requirements.yml --upgrade + ansible-galaxy collection install -r collections/requirements.yml --upgrade - name: Print configuration versions run: |