mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-22 07:01:54 -07:00
[PR #10822/0911db45 backport][stable-10] pipx: review tests (#10825)
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
pipx: review tests (#10822)
(cherry picked from commit 0911db457e
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
c251868e55
commit
2eedbdc928
7 changed files with 23 additions and 45 deletions
|
@ -120,24 +120,12 @@
|
||||||
state: reinstall
|
state: reinstall
|
||||||
register: reinstall_tox_324
|
register: reinstall_tox_324
|
||||||
|
|
||||||
- name: reinstall without name
|
|
||||||
community.general.pipx:
|
|
||||||
state: reinstall
|
|
||||||
register: reinstall_noname
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: upgrade tox from 3.24.0
|
- name: upgrade tox from 3.24.0
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: tox
|
name: tox
|
||||||
state: upgrade
|
state: upgrade
|
||||||
register: upgrade_tox_324
|
register: upgrade_tox_324
|
||||||
|
|
||||||
- name: upgrade without name
|
|
||||||
community.general.pipx:
|
|
||||||
state: upgrade
|
|
||||||
register: upgrade_noname
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: downgrade tox 3.24.0
|
- name: downgrade tox 3.24.0
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: tox
|
name: tox
|
||||||
|
@ -165,8 +153,6 @@
|
||||||
- downgrade_tox_324.application.tox.version == '3.24.0'
|
- downgrade_tox_324.application.tox.version == '3.24.0'
|
||||||
- uninstall_tox_324 is changed
|
- uninstall_tox_324 is changed
|
||||||
- "'tox' not in uninstall_tox_324.application"
|
- "'tox' not in uninstall_tox_324.application"
|
||||||
- upgrade_noname is failed
|
|
||||||
- reinstall_noname is failed
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
- name: install application latest tox
|
- name: install application latest tox
|
||||||
|
|
|
@ -3,25 +3,25 @@
|
||||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
- name: ensure application pyinstaller is uninstalled
|
- name: ensure application conan is uninstalled
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pyinstaller
|
name: conan
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Install Python Package pyinstaller
|
- name: Install conan
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pyinstaller
|
name: conan
|
||||||
state: present
|
state: present
|
||||||
system_site_packages: true
|
system_site_packages: true
|
||||||
pip_args: "--no-cache-dir"
|
pip_args: "--no-cache-dir"
|
||||||
register: install_pyinstaller
|
register: install_conan
|
||||||
|
|
||||||
- name: cleanup pyinstaller
|
- name: cleanup conan
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pyinstaller
|
name: conan
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: check assertions
|
- name: check assertions
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- install_pyinstaller is changed
|
- install_conan is changed
|
||||||
|
|
|
@ -54,11 +54,7 @@
|
||||||
- name: Uninstall pycowsay and black (again)
|
- name: Uninstall pycowsay and black (again)
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
state: uninstall
|
state: uninstall
|
||||||
name: "{{ item }}"
|
name: pycowsay
|
||||||
loop:
|
|
||||||
- black
|
|
||||||
- pycowsay
|
|
||||||
register: uninstall_all_2
|
|
||||||
|
|
||||||
- name: Assert pin/unpin
|
- name: Assert pin/unpin
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
environment:
|
environment:
|
||||||
PATH: /usr/local/bin:{{ ansible_env.PATH }}
|
PATH: /usr/local/bin:{{ ansible_env.PATH }}
|
||||||
block:
|
block:
|
||||||
- name: Uninstall pycowsay and black
|
- name: Uninstall pycowsay
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
state: uninstall
|
state: uninstall
|
||||||
name: pycowsay
|
name: pycowsay
|
||||||
|
@ -54,11 +54,7 @@
|
||||||
- name: Uninstall pycowsay and black (again)
|
- name: Uninstall pycowsay and black (again)
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
state: uninstall
|
state: uninstall
|
||||||
name: "{{ item }}"
|
name: pycowsay
|
||||||
loop:
|
|
||||||
- black
|
|
||||||
- pycowsay
|
|
||||||
register: uninstall_all_2
|
|
||||||
|
|
||||||
- name: Assert uninstall-all
|
- name: Assert uninstall-all
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
|
|
|
@ -3,28 +3,28 @@
|
||||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
- name: 9009-Ensure application pylint is uninstalled
|
- name: 9009-Ensure application pycowsay is uninstalled
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pylint
|
name: pycowsay
|
||||||
state: absent
|
state: absent
|
||||||
global: true
|
global: true
|
||||||
|
|
||||||
- name: 9009-Install application pylint
|
- name: 9009-Install application pycowsay
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pylint
|
name: pycowsay
|
||||||
global: true
|
global: true
|
||||||
register: install_pylint
|
register: install_pycowsay
|
||||||
|
|
||||||
- name: 9009-Inject packages
|
- name: 9009-Inject packages
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
state: inject
|
state: inject
|
||||||
name: pylint
|
name: pycowsay
|
||||||
global: true
|
global: true
|
||||||
inject_packages:
|
inject_packages:
|
||||||
- licenses
|
- licenses
|
||||||
|
|
||||||
- name: 9009-Ensure application pylint is uninstalled
|
- name: 9009-Ensure application pycowsay is uninstalled
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pylint
|
name: pycowsay
|
||||||
state: absent
|
state: absent
|
||||||
global: true
|
global: true
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
global: true
|
global: true
|
||||||
register: upgrade_hw
|
register: upgrade_hw
|
||||||
|
|
||||||
- name: 9103-Ensure application pylint is uninstalled
|
- name: 9103-Ensure application hello-world is uninstalled
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pylint
|
name: hello-world
|
||||||
state: absent
|
state: absent
|
||||||
global: true
|
global: true
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
global: true
|
global: true
|
||||||
register: latest_hw
|
register: latest_hw
|
||||||
|
|
||||||
- name: 9619-Ensure application pylint is uninstalled
|
- name: 9619-Ensure application hello-world is uninstalled
|
||||||
community.general.pipx:
|
community.general.pipx:
|
||||||
name: pylint
|
name: hello-world
|
||||||
state: absent
|
state: absent
|
||||||
global: true
|
global: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue