Skip to content

Commit

Permalink
[tasks/rpm-test-deps.yaml] install pytest from PyPI on CentOS
Browse files Browse the repository at this point in the history
tmp_path fixture was added in pytest-3.9 and there's 3.4 in epel8
  • Loading branch information
jpopelka committed Feb 25, 2021
1 parent 90e186e commit 1f2fa7b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions files/tasks/rpm-test-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
dnf:
name:
- python3-flexmock
- python3-pytest
- python3-pytest-cov
- python3-setuptools_scm_git_archive
- python3-setuptools_scm
- python3-distro
state: present
become: true
- name: Install rpmautospec-rpm-macros

- name: Install pytest & rpmautospec-rpm-macros
dnf:
name:
- python3-pytest-cov
- rpmautospec-rpm-macros
state: present
# rpmautospec-rpm-macros is not in epel
when: ansible_distribution == 'Fedora'
become: true

# We need >=3.9 for tmp_path fixture, there's 3.4 in epel
- name: Install pytest from PyPI
pip:
name: pytest-cov
when: ansible_distribution != 'Fedora'
become: true

0 comments on commit 1f2fa7b

Please sign in to comment.