Skip to content

Commit

Permalink
Checkout and compose example services
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Mar 5, 2025
1 parent 6012f61 commit 12032ac
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/_system_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,28 @@ jobs:
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: 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: ./.github/actions/install_requirements
uses: blueapi/.github/actions/install_requirements

- name: Start RabbitMQ
uses: namoshek/rabbitmq-github-action@v1
Expand All @@ -26,7 +40,9 @@ jobs:
plugins: rabbitmq_stomp

- name: Start Blueapi Server
run: blueapi -c ${{ github.workspace }}/tests/unit_tests/example_yaml/valid_stomp_config.yaml serve &
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
11 changes: 11 additions & 0 deletions tests/system_tests/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env:
sources:
- kind: dodal
module: dodal.beamlines.adsim
- kind: planFunctions
module: dodal.plans
- kind: planFunctions
module: dodal.plan_stubs.wrapped
stomp:
host: localhost
port: 61613

0 comments on commit 12032ac

Please sign in to comment.