feat: render command output #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| # Rocky Linux 8 (CentOS 8 compatible), glibc 2.28 | |
| runs-on: ubuntu-latest | |
| container: | |
| image: rockylinux:8 | |
| options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| dnf install -y \ | |
| gcc \ | |
| gcc-c++ \ | |
| make \ | |
| wget \ | |
| xz \ | |
| curl \ | |
| git \ | |
| unzip \ | |
| which \ | |
| findutils | |
| - name: Check glibc version | |
| run: | | |
| ldd --version | head -n1 | |
| # Should show glibc 2.28 (within 2.17-2.32 range) | |
| - name: Install Miniforge | |
| run: | | |
| wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh | |
| bash miniforge.sh -b -p $HOME/miniforge | |
| echo "$HOME/miniforge/bin" >> $GITHUB_PATH | |
| - name: Setup Conda environment | |
| run: | | |
| export PATH="$HOME/miniforge/bin:$PATH" | |
| conda create -n test python=3.10 -y | |
| conda init bash | |
| echo "conda activate test" >> ~/.bashrc | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Poetry and dependencies | |
| shell: bash -l {0} | |
| run: | | |
| source $HOME/miniforge/bin/activate test | |
| pip install --upgrade pip | |
| pip install poetry pytest | |
| poetry config virtualenvs.create false | |
| poetry install --no-interaction --without dev | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| source $HOME/miniforge/bin/activate test | |
| export PYTHON_HEADER_PATH=$HOME/miniforge/envs/test/include/python3.10 | |
| make test |