Skip to content

Commit

Permalink
chore: setup for almalinux in GH WF x 8
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Oct 30, 2024
1 parent 555228e commit f1e1348
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions .github/workflows/python-package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,33 @@ jobs:
strategy:
matrix:
container-name:
# - centos/python-38-centos7
- almalinux:latest
- almalinux:9

container:
image: ${{ matrix.container-name }}
options: --user root

steps:
- name: Setup Container
run: |
# FROM almalinux:latest
dnf install -y gcc make git zlib-devel bzip2 bzip2-devel readline-devel \
sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils \
which && \
dnf clean all
- name: Checkout code
uses: actions/checkout@v3

- name: Install pyenv
- name: Install dependencies for Python
run: |
curl https://pyenv.run | bash
env:
PYENV_ROOT: ${{ runner.temp }}/.pyenv
dnf install -y dnf-plugins-core
dnf install -y curl gcc openssl-devel bzip2-devel libffi-devel zlib-devel make
dnf install -y git
- name: Configure 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
shell: bash
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Python 3.10.12 with pyenv
- name: Install Torque
run: |
export PATH="${{ runner.temp }}/.pyenv/bin:${{ runner.temp }}/.pyenv/shims:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
pyenv install 3.10.12
pyenv global 3.10.12
dnf install -y epel-release
dnf install -y torque torque-client torque-devel torque-drmaa torque-mom torque-server torque-scheduler
- uses: actions/checkout@v2
- name: Install dependencies
run: |
dnf install -y epel-release
dnf install -y torque torque-client torque-devel torque-drmaa torque-mom torque-server torque-scheduler
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
pip install ".[all]"
Expand Down

0 comments on commit f1e1348

Please sign in to comment.