mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-20 05:58:12 -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
|
||||
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
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
state: upgrade
|
||||
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
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
|
@ -165,8 +153,6 @@
|
|||
- downgrade_tox_324.application.tox.version == '3.24.0'
|
||||
- uninstall_tox_324 is changed
|
||||
- "'tox' not in uninstall_tox_324.application"
|
||||
- upgrade_noname is failed
|
||||
- reinstall_noname is failed
|
||||
|
||||
##############################################################################
|
||||
- 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)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: ensure application pyinstaller is uninstalled
|
||||
- name: ensure application conan is uninstalled
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
name: conan
|
||||
state: absent
|
||||
|
||||
- name: Install Python Package pyinstaller
|
||||
- name: Install conan
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
name: conan
|
||||
state: present
|
||||
system_site_packages: true
|
||||
pip_args: "--no-cache-dir"
|
||||
register: install_pyinstaller
|
||||
register: install_conan
|
||||
|
||||
- name: cleanup pyinstaller
|
||||
- name: cleanup conan
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
name: conan
|
||||
state: absent
|
||||
|
||||
- name: check assertions
|
||||
assert:
|
||||
that:
|
||||
- install_pyinstaller is changed
|
||||
- install_conan is changed
|
||||
|
|
|
@ -54,11 +54,7 @@
|
|||
- name: Uninstall pycowsay and black (again)
|
||||
community.general.pipx:
|
||||
state: uninstall
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- black
|
||||
- pycowsay
|
||||
register: uninstall_all_2
|
||||
name: pycowsay
|
||||
|
||||
- name: Assert pin/unpin
|
||||
ansible.builtin.assert:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
environment:
|
||||
PATH: /usr/local/bin:{{ ansible_env.PATH }}
|
||||
block:
|
||||
- name: Uninstall pycowsay and black
|
||||
- name: Uninstall pycowsay
|
||||
community.general.pipx:
|
||||
state: uninstall
|
||||
name: pycowsay
|
||||
|
@ -54,11 +54,7 @@
|
|||
- name: Uninstall pycowsay and black (again)
|
||||
community.general.pipx:
|
||||
state: uninstall
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- black
|
||||
- pycowsay
|
||||
register: uninstall_all_2
|
||||
name: pycowsay
|
||||
|
||||
- name: Assert uninstall-all
|
||||
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)
|
||||
# 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:
|
||||
name: pylint
|
||||
name: pycowsay
|
||||
state: absent
|
||||
global: true
|
||||
|
||||
- name: 9009-Install application pylint
|
||||
- name: 9009-Install application pycowsay
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
name: pycowsay
|
||||
global: true
|
||||
register: install_pylint
|
||||
register: install_pycowsay
|
||||
|
||||
- name: 9009-Inject packages
|
||||
community.general.pipx:
|
||||
state: inject
|
||||
name: pylint
|
||||
name: pycowsay
|
||||
global: true
|
||||
inject_packages:
|
||||
- licenses
|
||||
|
||||
- name: 9009-Ensure application pylint is uninstalled
|
||||
- name: 9009-Ensure application pycowsay is uninstalled
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
name: pycowsay
|
||||
state: absent
|
||||
global: true
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
global: true
|
||||
register: upgrade_hw
|
||||
|
||||
- name: 9103-Ensure application pylint is uninstalled
|
||||
- name: 9103-Ensure application hello-world is uninstalled
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
name: hello-world
|
||||
state: absent
|
||||
global: true
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
global: true
|
||||
register: latest_hw
|
||||
|
||||
- name: 9619-Ensure application pylint is uninstalled
|
||||
- name: 9619-Ensure application hello-world is uninstalled
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
name: hello-world
|
||||
state: absent
|
||||
global: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue