-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on: [push]
jobs:
run-tests-and-lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/jsouter/ophyd-v2-tango/sardemo:v4
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: checkout repo
uses: actions/[email protected]
- name: pip install
run: |
pip install .
- name: sim proxy unit tests
run: |
python3 -m unittest tests/test_sim_proxy.py
- name: start tango, run example device tests
run: |
service mariadb start
/usr/local/tango/bin/tango start
python3 exampledevice.py &
sleep 10
python3 -m unittest tests/test_example_device.py
- name: start sardana and run tests
run: |
yes y | Sardana demo &
sleep 10
python3 -m unittest tests/test_sardana_motor.py
- name: linting
run: |
python3 -m flake8 ophyd_tango_devices
pip install mypy
python3 -m mypy ophyd_tango_devices