Skip to content

[el8] test(ci): Drop CentOS Stream 10 and Fedora containers #83

[el8] test(ci): Drop CentOS Stream 10 and Fedora containers

[el8] test(ci): Drop CentOS Stream 10 and Fedora containers #83

Workflow file for this run

name: pytest
on:
pull_request:
paths:
- "src/**"
- ".github/workflows/pytest.yml"
jobs:
pytest:
strategy:
fail-fast: false
matrix:
include:
- 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