Skip to content

Increase parallel Ubuntu jobs 4 -> 8 #46

Increase parallel Ubuntu jobs 4 -> 8

Increase parallel Ubuntu jobs 4 -> 8 #46

Workflow file for this run

name: Python Unit Tests
on: [push, pull_request, workflow_dispatch]
jobs:
Ubuntu-Python-Unit-Test:
name: Ubuntu Python Unit Tests
strategy:
max-parallel: 8
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
platform: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y libopenblas-dev
python -m pip install pip
python -m pip install --upgrade pip
- name: Install PECOS
run: |
make libpecos VFLAG=-v WARN_AS_ERROR=True
- name: Test with pytest
run: |
make test VFLAG=-v WARN_AS_ERROR=True
AmazonLinux-Python-Unit-Test:
name: AmazonLinux Python Unit Tests
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
runs-on: ubuntu-latest
container: amazonlinux:2023
steps:
- name: Install required tools for checkout
run: |
yum -y update
yum -y install \
tar \
gzip
- uses: actions/checkout@v6
- name: Install dependencies
run: |
yum -y update
yum -y groupinstall 'Development Tools'
yum -y install \
spal-release \
openblas-devel
- name: Set up Python ${{ matrix.python-version }} via miniconda
run: |
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh;
bash /tmp/miniconda.sh -b -p /tmp/miniconda
export PATH=/tmp/miniconda/bin:$PATH
conda create -n "py${{ matrix.python-version }}" python=${{ matrix.python-version }} -y
source activate "py${{ matrix.python-version }}"
rm /tmp/miniconda/envs/py${{ matrix.python-version }}/compiler_compat/ld
python3 -m pip install pip
python3 -m pip install --upgrade pip
- name: Install PECOS
run: |
export PATH=/tmp/miniconda/bin:$PATH
source activate "py${{ matrix.python-version }}"
make libpecos VFLAG=-v WARN_AS_ERROR=True
- name: Test with pytest
run: |
export PATH=/tmp/miniconda/bin:$PATH
source activate "py${{ matrix.python-version }}"
make test VFLAG=-v WARN_AS_ERROR=True