Skip to content

pin setuptools version to 73.0.1 #1013

pin setuptools version to 73.0.1

pin setuptools version to 73.0.1 #1013

Workflow file for this run

name: Python Unit Tests
on: [push, pull_request]
jobs:
Ubuntu-Python-Unit-Test:
name: Ubuntu Python Unit Tests
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
platform: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
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.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
container: amazonlinux:2
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
yum -y update
yum -y groupinstall 'Development Tools'
amazon-linux-extras install epel -y
yum install openblas-devel -y
- 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