diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25fcbd6..0670e0b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,12 +7,21 @@ on: - "master" jobs: - run-tests: + homelab-test: runs-on: ubuntu-latest steps: - - name: "Checkout Repository" - uses: actions/checkout@v3 - - name: "Build and Run Test Image" - run : | - docker build . -t test - docker run test + - uses: actions/checkout@v2 + - name: Set up Python 3.8.9 + uses: actions/setup-python@v2 + with: + python-version: 3.8.9 + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Test with molecule + run: | + cd ansible/roles/setup_docker + molecule test + env: + PY_COLORS: "1" + ANSIBLE_FORCE_COLOR: "1" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2558b04 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,41 @@ +ansible-compat==2.2.0 +arrow==1.2.2 +attrs==22.1.0 +binaryornot==0.4.4 +Cerberus==1.3.2 +certifi==2022.6.15 +chardet==5.0.0 +charset-normalizer==2.1.0 +click==8.1.3 +click-help-colors==0.9.1 +commonmark==0.9.1 +cookiecutter==2.1.1 +dnspython==2.2.1 +docker==5.0.3 +enrich==1.2.7 +idna==3.3 +importlib-resources==5.9.0 +Jinja2==3.1.2 +jinja2-time==0.2.0 +jsonschema==4.9.0 +MarkupSafe==2.1.1 +molecule==4.0.1 +molecule-docker==2.0.0 +packaging==21.3 +pkgutil-resolve-name==1.3.10 +pluggy==1.0.0 +Pygments==2.12.0 +pyparsing==3.0.9 +pyrsistent==0.18.1 +python-dateutil==2.8.2 +python-slugify==6.1.2 +PyYAML==6.0 +requests==2.28.1 +rich==12.5.1 +six==1.16.0 +subprocess-tee==0.3.5 +text-unidecode==1.3 +typing-extensions==4.3.0 +urllib3==1.26.11 +websocket-client==1.3.3 +zipp==3.8.1