@@ -12,16 +12,16 @@ jobs:
1212 - " 3.9"
1313 - " 3.10"
1414 steps :
15- - name : Check out code
16- uses : actions/checkout@v3
17- - name : Setup Python
18- uses : actions/setup-python@v4
19- with :
20- python-version : ${{ matrix.python }}
21- - name : Install dependencies
22- run : pip install tox
23- - name : Run linter
24- run : tox -e lint
15+ - name : Check out code
16+ uses : actions/checkout@v3
17+ - name : Setup Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : ${{ matrix.python }}
21+ - name : Install dependencies
22+ run : pip install tox
23+ - name : Run linter
24+ run : tox -e lint
2525
2626 unit-tests :
2727 needs : lint
@@ -33,17 +33,17 @@ jobs:
3333 - " 3.9"
3434 - " 3.10"
3535 steps :
36- - name : Check out code
37- uses : actions/checkout@v3
38- - name : Setup Python
39- uses : actions/setup-python@v4
40- with :
41- python-version : ${{ matrix.python }}
42- - name : Install dependencies
43- run : pip install tox
44- - name : Run unit tests
45- run : tox -e py3
46-
36+ - name : Check out code
37+ uses : actions/checkout@v3
38+ - name : Setup Python
39+ uses : actions/setup-python@v4
40+ with :
41+ python-version : ${{ matrix.python }}
42+ - name : Install dependencies
43+ run : pip install tox
44+ - name : Run unit tests
45+ run : tox -e py3
46+
4747 integration :
4848 name : Integration
4949 needs : [lint, unit-tests]
@@ -52,52 +52,52 @@ jobs:
5252 strategy :
5353 matrix :
5454 python :
55- # We will reduce the workload to 3.10 to
55+ # We will reduce the workload to 3.10 to
5656 # save some resources for now.
5757 # - "3.9"
5858 - " 3.10"
5959 steps :
60- - name : Check out code
61- uses : actions/checkout@v3
62- - name : Setup operator environment
63- uses : charmed-kubernetes/actions-operator@main
64- with :
65- provider : lxd
66- juju-channel : 3.1 /stable
67- # 2023-01-11 Commented until we discover a
68- # clear approach for this.
69- # - name: Set proxy in controller
70- # run: |
71- # set -euxo pipefail
72- # # build a squid config file
73- # CONTROLLER_IP=$(juju list-controllers --format yaml | yq '.controllers[.current-controller].recent-server' | awk -F '[:]' '{print $1}');
74- # echo "Controller IP is: $CONTROLLER_IP"
75- # PROXY=$CONTROLLER_IP:3128
76- # echo "Proxy address is: $PROXY"
77- # echo "acl all src all" > squid.conf
78- # echo "http_access allow all" >> squid.conf
79- # echo "http_port $PROXY" >> squid.conf
80- # cat squid.conf
81- # # copy to the controller and reconfigure it
82- # juju status -m controller
83- # juju switch controller
84- # juju ssh 0 "sudo apt-get install squid -y"
85- # juju scp squid.conf 0:/tmp/squid.conf
86- # juju ssh 0 "sudo mv /tmp/squid.conf /etc/squid/squid.conf"
87- # juju ssh 0 "sudo squid -k reconfigure"
88- # # Test curl after waiting
89- # sleep 10
90- # echo "Test proxy access"
91- # curl -s -o /dev/null -w "%{http_code}" --proxy http://$PROXY https://charmhub.io
92- # # set model defaults
93- # juju model-defaults apt-http-proxy=$PROXY apt-https-proxy=$PROXY juju-http-proxy=$PROXY juju-https-proxy=$PROXY snap-http-proxy=$PROXY snap-https-proxy=$PROXY
94- # juju model-defaults
95- - name : Setup Python
96- uses : actions/setup-python@v4
97- with :
98- python-version : ${{ matrix.python }}
99- - name : Install dependencies
100- run : pip install tox
101- - name : Run integration
102- # Force one single concurrent test
103- run : tox -e integration -- -n 1
60+ - name : Check out code
61+ uses : actions/checkout@v3
62+ - name : Setup operator environment
63+ uses : charmed-kubernetes/actions-operator@main
64+ with :
65+ provider : lxd
66+ juju-channel : 3.2 /stable
67+ # 2023-01-11 Commented until we discover a
68+ # clear approach for this.
69+ # - name: Set proxy in controller
70+ # run: |
71+ # set -euxo pipefail
72+ # # build a squid config file
73+ # CONTROLLER_IP=$(juju list-controllers --format yaml | yq '.controllers[.current-controller].recent-server' | awk -F '[:]' '{print $1}');
74+ # echo "Controller IP is: $CONTROLLER_IP"
75+ # PROXY=$CONTROLLER_IP:3128
76+ # echo "Proxy address is: $PROXY"
77+ # echo "acl all src all" > squid.conf
78+ # echo "http_access allow all" >> squid.conf
79+ # echo "http_port $PROXY" >> squid.conf
80+ # cat squid.conf
81+ # # copy to the controller and reconfigure it
82+ # juju status -m controller
83+ # juju switch controller
84+ # juju ssh 0 "sudo apt-get install squid -y"
85+ # juju scp squid.conf 0:/tmp/squid.conf
86+ # juju ssh 0 "sudo mv /tmp/squid.conf /etc/squid/squid.conf"
87+ # juju ssh 0 "sudo squid -k reconfigure"
88+ # # Test curl after waiting
89+ # sleep 10
90+ # echo "Test proxy access"
91+ # curl -s -o /dev/null -w "%{http_code}" --proxy http://$PROXY https://charmhub.io
92+ # # set model defaults
93+ # juju model-defaults apt-http-proxy=$PROXY apt-https-proxy=$PROXY juju-http-proxy=$PROXY juju-https-proxy=$PROXY snap-http-proxy=$PROXY snap-https-proxy=$PROXY
94+ # juju model-defaults
95+ - name : Setup Python
96+ uses : actions/setup-python@v4
97+ with :
98+ python-version : ${{ matrix.python }}
99+ - name : Install dependencies
100+ run : pip install tox
101+ - name : Run integration
102+ # Force one single concurrent test
103+ run : tox -e integration -- -n 1
0 commit comments