Skip to content

Commit

Permalink
fix: CI: try to fix issue git repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihnidek committed Jan 17, 2024
1 parent 3e079f2 commit 9371051
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@ jobs:
image: ${{ matrix.image }}

steps:
- name: "Enable EPEL repository"
run: |
yum -y install epel-release
- name: "Install core packages"
run: |
yum install -y \
git-core gcc make python python-devel python-setuptools python-pip
# We need to initiate the repository manually because Actions fallback
# to REST API with Git < 2.18; CentOS 7/RHEL 7 have 1.8.
# See https://github.com/actions/checkout#checkout-v3
# See https://github.com/actions/checkout/issues/766
- name: "Initiate new git repository"
run: |
git config --global user.email "[email protected]"
git config --global user.name "RHSM for RHEL 7 at GitHub Actions"
git init
git add .
git commit -m "Detached commit"
git config --global --add safe.directory '*'
- name: "Checkout repository"
uses: actions/checkout@v3

Expand Down
6 changes: 0 additions & 6 deletions scripts/container-pre-test.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/bin/bash

yum install -y epel-release

# Install essential packages
yum install -y \
git gcc make python python-devel python-setuptools python-pip

# Install system, build and runtime packages
yum install -y \
gtk3-devel python-ethtool \
Expand Down

0 comments on commit 9371051

Please sign in to comment.