Checkout and compose example services #5
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
| on: | |
| workflow_call: | |
| env: | |
| # https://github.com/pytest-dev/pytest/issues/2042 | |
| PY_IGNORE_IMPORTMISMATCH: "1" | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout containerised example IOCs | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: epics-containers/example-services | |
| path: example-services | |
| - name: Run containerised IOCs | |
| uses: hoverkraft-tech/compose-action@v2.0.1 | |
| with: | |
| compose-file: example-services/compose.yaml | |
| env: | |
| EPICS_CA_ADDR_LIST: 127.0.0.1:5094 | |
| - name: Start RabbitMQ | |
| uses: namoshek/rabbitmq-github-action@v1 | |
| with: | |
| ports: "61613:61613" | |
| plugins: rabbitmq_stomp | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| # Need this to get version number from last tag | |
| fetch-depth: 0 | |
| path: blueapi | |
| - name: Install python packages | |
| uses: blueapi/blueapi/.github/actions/install_requirements | |
| - name: Start Blueapi Server | |
| run: blueapi -c ${{ github.workspace }}/blueapi/tests/system_tests/config.yaml serve & | |
| env: | |
| EPICS_CA_ADDR_LIST: 127.0.0.1:5094 | |
| - name: Run tests | |
| run: tox -e system-test |