Fix GitubActions Docker issue #308
Workflow file for this run
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: Lint | |
"on": | |
pull_request: | |
push: | |
schedule: | |
- cron: "0 7 * * *" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint@v6.22.0 | |
- name: Set up Python 3. | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Upgrade pip | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt pip | |
pip --version | |
- name: Upgrade yamllint | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt yamllint | |
- name: Lint code. | |
run: | | |
yamllint -c .yamllint.yml . |