Skip to content

Commit 6eada7c

Browse files
Merge pull request #96 from gisce/NEW_github_ci_enable
NEW enable github ci mamba tests
2 parents 651a543 + 93b840b commit 6eada7c

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.github/workflows/python2.7-app.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/python3.11-app.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

spec/web_service_spec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import responses
2+
import primestg
23
from primestg.service import Service
34
from zeep.exceptions import TransportError
45

56
with description('Web services run'):
67
with before.all:
8+
# Only if NDA wsdl available
9+
if not primestg.get_data('WS_DC.wsdl'):
10+
exit(0)
711
self.s = Service(1, 'http://cct.gisce.lan:8080/')
812

913
with it('asking for S02 report with mocked connection'):

0 commit comments

Comments
 (0)