Add missing CMakeLists.txt and fix .gitignore #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |