-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github action unable to install requirements #3942
Comments
Related: #3607 |
In case of github action work-around is just to install ansible + lint from system packages (or pip) and run it. jobs:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@v6
with:
args: "-v --project-dir ."
# - name: Install ansible-lint from system packages
# run: |
# sudo apt update
# sudo apt install ansible-core ansible-lint
- name: Install ansible-lint with pip
run: |
sudo apt update
sudo apt install pip git
pip install ansible-core ansible-lint
- name: Run ansible-lint on our repo
run: |
ansible-galaxy collection install -r requirements.yml
ansible-lint -v -s --project-dir . Same result, same time, any version could be used (attemt to use |
https://github.com/konstruktoid/ansible-cowrie-rootless/actions/runs/8591406635/job/23540136880?pr=183#step:4:7 related #3607
|
Summary
Current github action (6.22.1) behaves as if it is always in "offline" mode (although according to logs it is not) and does not install requirements neigher from
requirements.yml
nor fromgalaxy.yml
. This severely limites its usablilty, restricting it to mostly a YAML syntax check.Issue Type
OS / ENVIRONMENT
github workflow
STEPS TO REPRODUCE
Test case is at https://github.com/veksh/ans-lint-test, it is like
.github/workflows
.ansible-lint
config with explicitoffline: false
Desired Behavior
Flagged error in parameter
Local ansible-lint is also reporting that it will not install requirements
but its ok because they are already installed
Actual Behavior
No errors, 3 warnings in logs (first is identical to a normal run of local ansible-lint)
The text was updated successfully, but these errors were encountered: