Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 1, 2024
1 parent 37917e1 commit 418de47
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions tests/tasks/pre.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
# pre test file
---
- name: install dependencies
ansible.builtin.apt:
name:
- "python{{ virtualenv_python_version_major is version('3', '>=') | ternary('3', '') }}"
- curl
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"

- name: install pip # noqa command-instead-of-module
- name: pip | check

Check warning on line 3 in tests/tasks/pre.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.shell: >
curl -sL {{ virtualenv_get_pip_url }} | python{{ virtualenv_python_version_major | string }} -
which pip
register: _pip_installed
changed_when: false
tags:
- skip_ansible_lint
check_mode: false
failed_when: false

- name: pip | install

Check warning on line 11 in tests/tasks/pre.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
when: _pip_installed.rc != 0
block:
- name: dependencies | install

Check warning on line 14 in tests/tasks/pre.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.apt:
name:
- "python{{ virtualenv_python_version_major is version('3', '>=') | ternary('3', '') }}"
- curl
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"

- name: pip | install # noqa command-instead-of-module
ansible.builtin.shell: >
curl -sL {{ virtualenv_get_pip_url }} | python{{ virtualenv_python_version_major | string }} -
changed_when: false
tags:
- skip_ansible_lint

0 comments on commit 418de47

Please sign in to comment.