Skip to content

chore: setup for almalinux in GH WF x 7 #127

chore: setup for almalinux in GH WF x 7

chore: setup for almalinux in GH WF x 7 #127

name: Python package tests
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
container-name:
# - centos/python-38-centos7
- almalinux:latest
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: Install pyenv
run: |
curl https://pyenv.run | bash
env:
PYENV_ROOT: ${{ runner.temp }}/.pyenv
- 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: Install Python 3.10.12 with pyenv
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
- 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]"
- name: Unit tests
run: |
python -m unittest discover --verbose --catch --start-directory tests/unit