Skip to content

Commit cbe7f59

Browse files
committed
CI: start caproto IOC for the tests
1 parent ad2188e commit cbe7f59

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.github/workflows/testing.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
./start-save-and-restore.sh
3232
popd
3333
34+
export EPICS_CA_AUTO_ADDR_LIST=NO
35+
export EPICS_CA_ADDR_LIST=127.0.0.1
36+
python -m caproto.ioc_examples.simple &
37+
3438
- name: Test with pytest
3539
run: |
3640
# pytest -k test_ip_kernel_func -vvv

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ dev = [
4141
"pytest-asyncio",
4242
"pre-commit",
4343
"ruff",
44+
"caproto !=1.2.0",
45+
"pyepics",
4446
]
4547
docs = [
4648
"sphinx>=7.0",

tests/test_misc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ async def testing():
100100
await SR.login(username=username, password=password)
101101

102102
asyncio.run(testing())
103+
104+
105+
106+
def test_epics():
107+
import epics
108+
epics.caput("simple:A", 10)
109+
v = epics.caget("simple:A")
110+
assert v == 10

0 commit comments

Comments
 (0)