Skip to content

update readme for action and use published container #8

update readme for action and use published container

update readme for action and use published container #8

Workflow file for this run

name: Python test
on:
pull_request:
push:
branches:
- main
jobs:
test-module:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: pip install . .[tests]
- name: Run tests
run: pytest
env:
ANSIBLE_VAULT_PASSWORD_FILE: tests/ansible_vault_password
- name: E2E test
run: |
python -m little_timmy -h
python -m little_timmy -e tests/repos/config_file_skip/repo -c tests/repos/config_file_skip/repo/.little-timmy
python -m little_timmy -e tests/repos/config_file_skip/repo
python -m little_timmy -e tests/repos/alternate_layout/repo
python -m little_timmy -j tests/repos/no_unused/repo
env:
ANSIBLE_VAULT_PASSWORD_FILE: tests/ansible_vault_password