Outlined an Anchor.calcAnchorLoads function #288
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: CI_FAModel | |
| # We run CI on push commits and pull requests on all branches | |
| on: [push, pull_request] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| build_conda: | |
| name: Conda Build (${{ matrix.os }}) - ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| strategy: | |
| fail-fast: false #true | |
| matrix: | |
| os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| # https://github.com/marketplace/actions/setup-miniconda | |
| with: | |
| # To use mamba, uncomment here, comment out the miniforge line | |
| #mamba-version: "*" | |
| miniforge-version: "latest" | |
| auto-update-conda: true | |
| python-version: ${{ matrix.python-version }} | |
| environment-file: famodel-env.yaml | |
| activate-environment: test | |
| auto-activate-base: false | |
| channels: conda-forge | |
| channel-priority: true | |
| - name: Extras | |
| run: | | |
| conda install -y pytest meson ninja nlopt | |
| pip install scipy==1.11.2 # specific SciPy version needed for current LineDesign test results | |
| conda info | |
| - name: Conda Install famodel | |
| run: | | |
| pip install -e . | |
| - name: Overwrite MoorPy | |
| run: | | |
| pip uninstall -y moorpy # need to uninstall the old version to install the current dev branch | |
| pip install git+https://github.com/NREL/MoorPy@dev | |
| - name: Example run | |
| run: | | |
| cd examples | |
| python example_driver.py false | |
| - name: Test run | |
| run: | | |
| cd tests | |
| pytest . | |