diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..aadc7135 --- /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 collections/requirements.yml --upgrade + + - name: Print configuration versions + run: | + pip freeze + ansible-galaxy collection list + + # - name: Run role tests + # run: | + # molecule test --scenario-name github + +... diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5b1a8683..cede578e 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 collections/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 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