chore: wrap/split long lines #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytest | |
on: | |
pull_request: | |
paths: | |
- "src/**" | |
jobs: | |
pytest: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Fedora Rawhide" | |
image: "registry.fedoraproject.org/fedora:rawhide" | |
- name: "Fedora Latest" | |
image: "registry.fedoraproject.org/fedora:latest" | |
- name: "CentOS Stream 10" | |
image: "quay.io/centos/centos:stream10-development" | |
- name: "CentOS Stream 9" | |
image: "quay.io/centos/centos:stream9" | |
- name: "CentOS Stream 8" | |
image: "quay.io/centos/centos:stream8" | |
runs-on: "ubuntu-latest" | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: "Checkout the repository" | |
uses: actions/checkout@v4 | |
- name: "Use CentOS Vault" | |
if: matrix.name == 'CentOS Stream 8' | |
run: | | |
sed -i 's|#baseurl=http://mirror|baseurl=http://vault|' /etc/yum.repos.d/CentOS-Stream-*.repo | |
- name: "Install dependencies" | |
run: | | |
dnf --setopt install_weak_deps=False install -y git-core python3-pip gpg | |
python3 -m pip install --upgrade pip wheel | |
python3 -m pip install -r src/insights_client/tests/requirements.txt | |
- name: "Run pytest" | |
env: | |
PYTEST_ADDOPTS: "--color=yes --code-highlight=yes --showlocals" | |
run: | | |
python3 -m pytest src/insights_client/tests |