|
| 1 | +name: CBCFlow Integration Tests |
| 2 | + |
| 3 | +# These tests check the integration between asimov and cbcflow. |
| 4 | +# They are allowed to fail (continue-on-error: true) because: |
| 5 | +# - cbcflow is an optional external dependency |
| 6 | +# - some failures reveal known issues to be fixed incrementally |
| 7 | +# |
| 8 | +# Run on the same branches as the main test suite so failures are visible. |
| 9 | + |
| 10 | +on: |
| 11 | + push: |
| 12 | + branches: [ master, v*-release, v*-preview ] |
| 13 | + tags: |
| 14 | + - 'v[0-9]+.[0-9]+.[0-9]+' |
| 15 | + - 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+' |
| 16 | + - 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+' |
| 17 | + - 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' |
| 18 | + pull_request: |
| 19 | + branches: [ master, v*-release, v*-preview ] |
| 20 | + |
| 21 | +jobs: |
| 22 | + cbcflow-integration: |
| 23 | + name: CBCFlow integration (Python 3.11) |
| 24 | + runs-on: ubuntu-latest |
| 25 | + continue-on-error: true |
| 26 | + |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + with: |
| 30 | + fetch-depth: 0 |
| 31 | + |
| 32 | + - name: Set up Python 3.11 |
| 33 | + uses: actions/setup-python@v5 |
| 34 | + with: |
| 35 | + python-version: "3.11" |
| 36 | + |
| 37 | + - name: Install asimov |
| 38 | + run: | |
| 39 | + python -m pip install --upgrade pip |
| 40 | + pip install . |
| 41 | + pip install ".[bilby]" |
| 42 | +
|
| 43 | + - name: Install cbcflow |
| 44 | + run: pip install cbcflow |
| 45 | + |
| 46 | + - name: Set up git identity |
| 47 | + run: | |
| 48 | + git config --global user.email "test@asimov.test" |
| 49 | + git config --global user.name "Asimov Test" |
| 50 | + git config --global init.defaultBranch main |
| 51 | +
|
| 52 | + - name: Run CBCFlow integration tests |
| 53 | + run: python -m unittest tests.test_cbcflow_integration -v |
0 commit comments