fix CI2 #28
Workflow file for this run
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: test_hiopbbpy | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Set up Conda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| auto-activate-base: true | |
| channels: conda-forge | |
| - name: Install IPOPT via conda | |
| run: | | |
| conda init bash | |
| conda install -c conda-forge cyipopt pkg-config | |
| export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH | |
| - name: Verify cyipopt installation | |
| run: | | |
| conda activate base | |
| python -c "import cyipopt; print('cyipopt OK')" | |
| - name: Install HiOpBBPy | |
| run: | | |
| export SKIP_CYIPOPT=1 | |
| python -m pip install --upgrade pip | |
| pip install . | |
| - name: Run Tests | |
| run: | | |
| conda activate base | |
| python src/Drivers/hiopbbpy/BODriverCI.py 10 |