Merge pull request #42 from andreygubarev/ansible-version #76
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: Python Package - Lint | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
lint-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up direnv | |
uses: andreygubarev/direnv-action@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pipenv' | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Lint with ansible-lint | |
run: | | |
direnv allow . | |
direnv exec . pycodestyle molecule_qemu |