-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (54 loc) · 1.58 KB
/
ci.yaml
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
59
60
61
62
63
64
65
name: CI
on: [push, workflow_dispatch]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: install packages
run: |
sudo apt update
sudo apt install --yes --no-install-recommends \
python3-configobj \
python3-cheetah \
python3-pil \
python3-ephem \
python3-mock \
python3-mysqldb \
python3-serial \
python3-usb \
python3-pip
# mariadb-client \
# mariadb-server \
# rsync \
# sqlite
# - name: install WeeWX
# run: |
# wget -P /var/tmp http://weewx.com/downloads/weewx-4.10.2.tar.gz
# # PWD=$(pwd)
# # cd /var/tmp
# # tar xvfz weewx-4.10.2.tar.gz
# # cd weewx-4.10.2
# # python3 ./setup.py build
# # sudo python3 ./setup.py install
# # echo -e "Narangba CI\n46, meter\n-27.185857\n152.956995\nn\nmetric\n3\n" | sudo python3 ./setup.py install
- uses: actions/checkout@v3
- name: Launch tests
run: |
echo "-----pwd-----"
pwd
echo "-----ls -hail-----"
ls -hail
echo "-----ls bin/-----"
ls -hail bin/
echo "----PYTHONPATH------"
# PWD=$(pwd)
# export PYTHONPATH=$PWD/bin:$PYTHONPATH
echo "----PYTHONPATH------"
python3 -m user.tests.test_egd
# PYTHONPATH=/home/weewx/bin python3 -m user.tests.test_eg
- name: Archive test-results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: build/test-results