@@ -3,10 +3,10 @@ name: Python 3 ARM64 CI
33on :
44 push :
55 branches :
6- - master
6+ - master
77 pull_request :
88 branches :
9- - master
9+ - master
1010
1111jobs :
1212 hue-build-and-tests-arm64 :
@@ -15,68 +15,68 @@ jobs:
1515 runs-on : ubuntu-22.04-arm
1616
1717 steps :
18- - name : Checkout
19- uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
22-
23- - name : Check commit title format
24- run : |
25- ./tools/ci/check_for_commit_message.sh
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
2622
27- - name : Set up Python 3.11
28- uses : actions/setup-python@v5
29- with :
30- python-version : ' 3.11'
23+ - name : Check commit title format
24+ run : |
25+ ./tools/ci/check_for_commit_message.sh
3126
32- - name : Cache pip
33- uses : actions/cache@v4
34- with :
35- path : ~/.cache/pip
36- key : ${{ runner.os }}-arm64-py311-pip-${{ hashFiles('desktop/core/generate_requirements.py') }}
37- restore-keys : |
38- ${{ runner.os }}-arm64-py311-pip-
39- ${{ runner.os }}-arm64-py311-
40- ${{ runner.os }}-arm64-
27+ - name : Set up Python 3.11
28+ uses : actions/setup-python@v5
29+ with :
30+ python-version : ' 3.11'
4131
42- - name : Setup node 20 and cache npm
43- uses : actions/setup-node@v4
44- with :
45- node-version : 20
46- cache : ' npm'
32+ - name : Cache pip
33+ uses : actions/cache@v4
34+ with :
35+ path : ~/.cache/pip
36+ key : ${{ runner.os }}-arm64-py311-pip-${{ hashFiles('desktop/core/generate_requirements.py') }}
37+ restore-keys : |
38+ ${{ runner.os }}-arm64-py311-pip-
39+ ${{ runner.os }}-arm64-py311-
40+ ${{ runner.os }}-arm64-
4741
48- - name : Build Hue
49- run : |
50- sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
51- export DEBIAN_FRONTEND=noninteractive
52- sudo apt-get update -y
53- sudo apt-get install -y build-essential asciidoc libkrb5-dev libldap2-dev libsasl2-dev libxml2-dev libxslt-dev libsasl2-modules-gssapi-mit libsnappy-dev libncursesw5-dev libgdbm-dev
54-
55- # Install Python 3.11 using deadsnakes PPA
56- sudo add-apt-repository -y ppa:deadsnakes/ppa
57- sudo apt-get install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils
58-
59- # Install pip for Python 3.11
60- curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.11
61-
62- unset PIP_FIND_LINKS
63- unset PIP_EXTRA_INDEX_URL
42+ - name : Setup node 20 and cache npm
43+ uses : actions/setup-node@v4
44+ with :
45+ node-version : 20
46+ cache : ' npm'
6447
65- export PYTHON_VER=python3.11
66- export SKIP_PYTHONDEV_CHECK=true
67- export ROOT=$PWD
68- make apps docs test_prep
48+ - name : Build Hue
49+ run : |
50+ sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
51+ export DEBIAN_FRONTEND=noninteractive
52+ sudo apt-get update -y
53+ sudo apt-get install -y build-essential asciidoc libkrb5-dev libldap2-dev libsasl2-dev libxml2-dev libxslt-dev libsasl2-modules-gssapi-mit libsnappy-dev libncursesw5-dev libgdbm-dev
6954
70- - name : Run python lint check
71- run : |
72- PYTHONWARNINGS=always ./build/env/bin/hue runruff check
55+ # Install Python 3.11 using deadsnakes PPA
56+ sudo add-apt-repository -y ppa:deadsnakes/ppa
57+ sudo apt-get install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils
7358
74- - name : Run unit tests
75- run : |
76- PYTHONWARNINGS=always ./build/env/bin/pytest
59+ # Install pip for Python 3.11
60+ curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.11
7761
78- - name : Upload reports
79- uses : actions/upload-artifact@v4
80- with :
81- name : hue-reports-arm64
82- path : ./reports
62+ unset PIP_FIND_LINKS
63+ unset PIP_EXTRA_INDEX_URL
64+
65+ export PYTHON_VER=python3.11
66+ export SKIP_PYTHONDEV_CHECK=true
67+ export ROOT=$PWD
68+ make apps docs test_prep
69+
70+ - name : Run python lint check
71+ run : |
72+ PYTHONWARNINGS=always ./build/env/bin/hue runruff check
73+
74+ - name : Run unit tests
75+ run : |
76+ PYTHONWARNINGS=always ./build/env/bin/pytest
77+
78+ - name : Upload reports
79+ uses : actions/upload-artifact@v4
80+ with :
81+ name : hue-reports-arm64
82+ path : ./reports
0 commit comments