|
| 1 | +name: "[TEMP] Debug BSK-RL CI SPICE" |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +jobs: |
| 8 | + build-ubuntu-latest-wheels: |
| 9 | + name: Build ubuntu-latest wheels |
| 10 | + runs-on: ubuntu-22.04 |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + python-version: ["3.11"] |
| 14 | + steps: |
| 15 | + - name: Checkout code |
| 16 | + uses: actions/checkout@v4 |
| 17 | + - name: Set up Python ${{ matrix.python-version }} |
| 18 | + uses: actions/setup-python@v5 |
| 19 | + with: |
| 20 | + python-version: ${{ matrix.python-version }} |
| 21 | + - name: "Install swig and cmake" |
| 22 | + run: sudo apt-get update && sudo apt-get install build-essential swig cmake -y |
| 23 | + - name: "Install python packages" |
| 24 | + run: sudo apt-get install python3-setuptools python3-tk python3-venv |
| 25 | + - name: "Create virtual Environment" |
| 26 | + run: python3 -m venv .venv |
| 27 | + - name: "Build basilisk" |
| 28 | + run: | |
| 29 | + source .venv/bin/activate |
| 30 | + pip wheel . -v --wheel-dir /tmp/wheelhouse |
| 31 | + - uses: actions/upload-artifact@v4 |
| 32 | + with: |
| 33 | + name: basilisk-wheels_ubuntu-22.04_python${{ matrix.python-version }} |
| 34 | + path: /tmp/wheelhouse/**/*asilisk*.whl |
| 35 | + |
| 36 | + test-bsk-rl-docs: |
| 37 | + name: Test BSK-RL Docs |
| 38 | + needs: build-ubuntu-latest-wheels |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + python-version: ["3.11"] |
| 43 | + test-index: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] |
| 44 | + fail-fast: false |
| 45 | + steps: |
| 46 | + - name: Set up Python ${{ matrix.python-version }} |
| 47 | + uses: actions/setup-python@v5 |
| 48 | + with: |
| 49 | + python-version: ${{ matrix.python-version }} |
| 50 | + - name: Pull Artifact |
| 51 | + uses: actions/download-artifact@v4 |
| 52 | + with: |
| 53 | + name: basilisk-wheels_ubuntu-22.04_python${{ matrix.python-version }} |
| 54 | + - name: Install Basilisk from wheels |
| 55 | + shell: bash |
| 56 | + run: | |
| 57 | + pip install *asilisk*.whl |
| 58 | + bskLargeData |
| 59 | + - name: Clone BSK-RL |
| 60 | + uses: actions/checkout@v4 |
| 61 | + with: |
| 62 | + repository: AVSLab/bsk_rl |
| 63 | + path: bsk_rl |
| 64 | + - name: Install BSK-RL |
| 65 | + run: | |
| 66 | + cd bsk_rl |
| 67 | + pip install -e '.[all,rllib,docs]' && finish_install |
| 68 | + - uses: pandoc/actions/setup@main |
| 69 | + - name: Sphinx build |
| 70 | + run: | |
| 71 | + cd bsk_rl/docs |
| 72 | + make html |
| 73 | +
|
| 74 | + test-bsk-rl-tests: |
| 75 | + name: Test BSK-RL Pytest |
| 76 | + needs: build-ubuntu-latest-wheels |
| 77 | + runs-on: ubuntu-latest |
| 78 | + strategy: |
| 79 | + matrix: |
| 80 | + python-version: ["3.11"] |
| 81 | + test-index: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] |
| 82 | + fail-fast: false |
| 83 | + steps: |
| 84 | + - name: Set up Python ${{ matrix.python-version }} |
| 85 | + uses: actions/setup-python@v5 |
| 86 | + with: |
| 87 | + python-version: ${{ matrix.python-version }} |
| 88 | + - name: Pull Artifact |
| 89 | + uses: actions/download-artifact@v4 |
| 90 | + with: |
| 91 | + name: basilisk-wheels_ubuntu-22.04_python${{ matrix.python-version }} |
| 92 | + - name: Install Basilisk from wheels |
| 93 | + shell: bash |
| 94 | + run: | |
| 95 | + pip install *asilisk*.whl |
| 96 | + bskLargeData |
| 97 | + - name: Clone BSK-RL |
| 98 | + uses: actions/checkout@v4 |
| 99 | + with: |
| 100 | + repository: AVSLab/bsk_rl |
| 101 | + path: bsk_rl |
| 102 | + - name: Install BSK-RL |
| 103 | + run: | |
| 104 | + cd bsk_rl |
| 105 | + pip install -e '.[all,rllib,docs]' && finish_install |
| 106 | + - name: Pytest |
| 107 | + run: | |
| 108 | + cd bsk_rl |
| 109 | + pytest -v -ra --tb=long -o log_cli=true -o log_level=DEBUG |
0 commit comments