Skip to content

BLAS fuctions

BLAS fuctions #84

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, converted_to_draft, ready_for_review, synchronize]
branches:
- main
jobs:
build:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install blas, lapack for Linux
if: runner.os == 'Linux'
run: |
sudo apt-get install -y libblas-dev liblapack-dev
- name: Install BLAS and LAPACK for macOS
if: runner.os == 'macOS'
run: |
brew install openblas
- name: Autoformat code with autopep8
run: |
python -m pip install autopep8
autopep8 --in-place --recursive .
working-directory: arc/matrices
- name: Install tinynumpy
run: |
python -m pip install dist/tinynumpy-1.2.1.tar.gz
- name: Install numpy
run: |
python -m pip install numpy
- name: Install pytest
run: |
python -m pip install pytest
- name: Install pytest-cov
run: python -m pip install pytest-cov
- name: Run tests with Python ${{ matrix.python-version }}
run: |
python${{ matrix.python-version }} -m pytest --cov=arc/matrices --cov-report=xml arc/matrices/tests
python${{ matrix.python-version }} -m pytest --cov=arc/linear_alg --cov-report=xml arc/linear_alg/tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}