-
Notifications
You must be signed in to change notification settings - Fork 393
58 lines (46 loc) · 1.47 KB
/
linux-pyindi.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: PyIndi
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: ["ubuntu"]
container:
image: ghcr.io/${{ github.repository_owner }}/${{ matrix.container }}
steps:
- name: Get INDI Sources
uses: actions/checkout@v3
with:
path: 'indi'
- name: Build INDI Core
run: |
indi/scripts/indi-core-build.sh
indi/scripts/indi-core-package-build.sh
- name: Install INDI Core
run: indi/scripts/indi-core-install.sh
- name: Install Python3 Pre-requisites
run: |
$(command -v sudo) apt-get update && $(command -v sudo) apt-get install -y python3 python3-dev python3-setuptools swig python3-pip
- name: Get PyIndi Sources
uses: actions/checkout@v2
with:
repository: indilib/pyindi-client
path: ./pyindi-client
- name: Build PyIndi
run: |
cd pyindi-client && python3 ./setup.py install
- name: Install test deps
run: |
cd pyindi-client && pip3 install --break-system-packages -r requirements-test.txt
- name: Test PyIndi
run: |
cd pyindi-client && /bin/bash -c "indiserver indi_simulator_ccd indi_simulator_focus indi_simulator_gps indi_simulator_guide indi_simulator_wheel indi_simulator_telescope & tox"