add terraform fmt unit test #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: test | |
on: | |
push: | |
branches: [master] | |
paths: | |
- '**.py' | |
pull_request: | |
branches: [master] | |
paths: | |
- '**.py' | |
jobs: | |
ansible-module-ci: | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
runs-on: ubuntu-latest | |
container: matthewschuchard/ansible-module | |
steps: | |
- name: setup ansible collection namespace dir structure | |
run: mkdir mschuchard | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
path: mschuchard/general | |
- name: ruff | |
run: ruff check . | |
working-directory: ./mschuchard/general | |
- name: pytest module utils | |
run: pytest tests/unit/plugins/module_utils | |
working-directory: ./mschuchard/general |