File tree Expand file tree Collapse file tree 3 files changed +76
-0
lines changed Expand file tree Collapse file tree 3 files changed +76
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name : Python 2.7
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Install Python 2.7
20
+ run : |
21
+ sudo apt update
22
+ sudo apt install python2 python-pip
23
+ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
24
+ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
25
+ printf '1\n' | sudo update-alternatives --config python
26
+ cd /usr/bin
27
+ sudo ln -s /usr/bin/pip2 ./pip
28
+ - name : Install dependencies
29
+ run : |
30
+ python -m pip install --upgrade pip
31
+ python -m pip install --upgrade setuptools
32
+ pip install -r requirements.txt
33
+ pip install -r requirements-dev.txt
34
+ pip install coveralls
35
+ pip install -e .
36
+ - name : Test with mamba
37
+ run : |
38
+ mamba --enable-coverage
Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name : Python 3.11
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : Set up Python 3.11
20
+ uses : actions/setup-python@v3
21
+ with :
22
+ python-version : " 3.11"
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install --upgrade setuptools
27
+ pip install -r requirements.txt
28
+ pip install -r requirements-dev.txt
29
+ pip install coveralls
30
+ pip install -e .
31
+ pip install --upgrade mamba
32
+ - name : Test with mamba
33
+ run : |
34
+ mamba --enable-coverage
Original file line number Diff line number Diff line change 1
1
import responses
2
+ import primestg
2
3
from primestg .service import Service
3
4
from zeep .exceptions import TransportError
4
5
5
6
with description ('Web services run' ):
6
7
with before .all :
8
+ # Only if NDA wsdl available
9
+ if not primestg .get_data ('WS_DC.wsdl' ):
10
+ exit (0 )
7
11
self .s = Service (1 , 'http://cct.gisce.lan:8080/' )
8
12
9
13
with it ('asking for S02 report with mocked connection' ):
You can’t perform that action at this time.
0 commit comments