Skip to content

Update wheels.yml

Update wheels.yml #27

name: Tests Python|ubuntu grid
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"] #, "3.13"] # Testing on Python 3.8 to 3.13
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install LAPACK for Linux
- name: Install LAPACK (Linux only)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y liblapack-dev
# Set up Python based on the matrix version
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "numpy<2"
pip install flake8 pytest pre-commit
pip install circe-py
# Run tests and collect coverage
- name: Run tests
run: |
python -m pip install pytest # Install pytest or any other test framework
python -m pytest ../
working-directory: ./tests