Skip to content

Add missing CMakeLists.txt and fix .gitignore #140

Add missing CMakeLists.txt and fix .gitignore

Add missing CMakeLists.txt and fix .gitignore #140

Workflow file for this run

name: Fidimag test
on: [push, pull_request]
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
python-version: ['3.12', '3.13', '3.14']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Update apt and install dependencies"
run: |
sudo apt-get -y update
sudo apt-get install -y cmake gcc g++
sudo apt-get install -y libatlas-base-dev libatlas3-base
- name: "Install SUNDIALS and FFTW"
working-directory: ./bin
run: |
bash install-fftw.sh
bash install-sundials.sh
- name: "Install uv"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: "Build and install Fidimag"
run: |
uv sync --frozen --all-extras
echo "LD_LIBRARY_PATH=$PWD/local/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: "Run tests"
working-directory: ./tests
run: |
uv run pytest -v -m "not slow and not run_oommf"