@@ -4,49 +4,48 @@ on: [push, pull_request]
44
55jobs :
66 test :
7-
8- runs-on : ubuntu-18.04
7+ runs-on : ubuntu-20.04
98 strategy :
109 max-parallel : 16
1110 matrix :
12- python-version : [3.6, 3.7, 3.8, 3.9]
11+ python-version : ["3.7", " 3.8", " 3.9" ]
1312
1413 steps :
15- - name : Checkout ZeroNet
16- uses : actions/checkout@v2
17- with :
18- submodules : ' true'
19-
20- - name : Set up Python ${{ matrix.python-version }}
21- uses : actions/setup-python@v1
22- with :
23- python-version : ${{ matrix.python-version }}
24-
25- - name : Prepare for installation
26- run : |
27- python3 -m pip install setuptools
28- python3 -m pip install --upgrade pip wheel
29- python3 -m pip install --upgrade codecov coveralls flake8 mock pytest==4.6.3 pytest-cov selenium
30-
31- - name : Install
32- run : |
33- python3 -m pip install --upgrade -r requirements.txt
34- python3 -m pip list
35-
36- - name : Prepare for tests
37- run : |
38- openssl version -a
39- echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6
40-
41- - name : Test
42- run : |
43- catchsegv python3 -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
44- export ZERONET_LOG_DIR="log/CryptMessage"; catchsegv python3 -m pytest -x plugins/CryptMessage/Test
45- export ZERONET_LOG_DIR="log/Bigfile"; catchsegv python3 -m pytest -x plugins/Bigfile/Test
46- export ZERONET_LOG_DIR="log/AnnounceLocal"; catchsegv python3 -m pytest -x plugins/AnnounceLocal/Test
47- export ZERONET_LOG_DIR="log/OptionalManager"; catchsegv python3 -m pytest -x plugins/OptionalManager/Test
48- export ZERONET_LOG_DIR="log/Multiuser"; mv plugins/disabled-Multiuser plugins/Multiuser && catchsegv python -m pytest -x plugins/Multiuser/Test
49- export ZERONET_LOG_DIR="log/Bootstrapper"; mv plugins/disabled-Bootstrapper plugins/Bootstrapper && catchsegv python -m pytest -x plugins/Bootstrapper/Test
50- find src -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
51- find plugins -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
52- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics --exclude=src/lib/pyaes/
14+ - name : Checkout ZeroNet
15+ uses : actions/checkout@v2
16+ with :
17+ submodules : " true"
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v1
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Prepare for installation
25+ run : |
26+ python3 -m pip install setuptools
27+ python3 -m pip install --upgrade pip wheel
28+ python3 -m pip install --upgrade codecov coveralls flake8 mock pytest==4.6.3 pytest-cov selenium
29+
30+ - name : Install
31+ run : |
32+ python3 -m pip install --upgrade -r requirements.txt
33+ python3 -m pip list
34+
35+ - name : Prepare for tests
36+ run : |
37+ openssl version -a
38+ echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6
39+
40+ - name : Test
41+ run : |
42+ catchsegv python3 -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
43+ export ZERONET_LOG_DIR="log/CryptMessage"; catchsegv python3 -m pytest -x plugins/CryptMessage/Test
44+ export ZERONET_LOG_DIR="log/Bigfile"; catchsegv python3 -m pytest -x plugins/Bigfile/Test
45+ export ZERONET_LOG_DIR="log/AnnounceLocal"; catchsegv python3 -m pytest -x plugins/AnnounceLocal/Test
46+ export ZERONET_LOG_DIR="log/OptionalManager"; catchsegv python3 -m pytest -x plugins/OptionalManager/Test
47+ export ZERONET_LOG_DIR="log/Multiuser"; mv plugins/disabled-Multiuser plugins/Multiuser && catchsegv python -m pytest -x plugins/Multiuser/Test
48+ export ZERONET_LOG_DIR="log/Bootstrapper"; mv plugins/disabled-Bootstrapper plugins/Bootstrapper && catchsegv python -m pytest -x plugins/Bootstrapper/Test
49+ find src -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
50+ find plugins -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
51+ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics --exclude=src/lib/pyaes/
0 commit comments