Skip to content

Commit

Permalink
chore: setup for almalinux in GH WF x 5
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Oct 30, 2024
1 parent b68b3ff commit 8e34832
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/python-package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,26 @@ jobs:
which && \
dnf clean all
# Set environment variables for pyenv
export HOME=/root
export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT && \
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $HOME/.bashrc && \
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> $HOME/.bashrc && \
echo 'eval "$(pyenv init --path)"' >> $HOME/.bashrc
- name: Install pyenv
run: |
curl https://pyenv.run | bash
# Set pyenv environment variables globally for all steps
env:
PYENV_ROOT: ${{ runner.temp }}/.pyenv

# Install Python 3.10.12 with pyenv
/root/.pyenv/bin/pyenv install 3.10.12 && \
/root/.pyenv/bin/pyenv global 3.10.12
- name: Set up pyenv environment variables
run: |
echo "PYENV_ROOT=${{ runner.temp }}/.pyenv" >> $GITHUB_ENV
echo "PATH=${{ runner.temp }}/.pyenv/bin:${{ runner.temp }}/.pyenv/shims:$PATH" >> $GITHUB_ENV
echo 'eval "$(pyenv init --path)"' >> $GITHUB_ENV
echo 'eval "$(pyenv init -)"' >> $GITHUB_ENV
- name: Install Python 3.10.12 with pyenv
run: |
pyenv install 3.10.12
pyenv global 3.10.12
- uses: actions/checkout@v2

- name: Install dependencies
run: |
dnf install -y epel-release
Expand Down

0 comments on commit 8e34832

Please sign in to comment.