Skip to content

Commit

Permalink
Merge pull request #96 from gisce/NEW_github_ci_enable
Browse files Browse the repository at this point in the history
NEW enable github ci mamba tests
  • Loading branch information
davidmunoznovoa authored Jan 2, 2024
2 parents 651a543 + 93b840b commit 6eada7c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python2.7-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python 2.7

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Python 2.7
run: |
sudo apt update
sudo apt install python2 python-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
printf '1\n' | sudo update-alternatives --config python
cd /usr/bin
sudo ln -s /usr/bin/pip2 ./pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install coveralls
pip install -e .
- name: Test with mamba
run: |
mamba --enable-coverage
34 changes: 34 additions & 0 deletions .github/workflows/python3.11-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python 3.11

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install coveralls
pip install -e .
pip install --upgrade mamba
- name: Test with mamba
run: |
mamba --enable-coverage
4 changes: 4 additions & 0 deletions spec/web_service_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import responses
import primestg
from primestg.service import Service
from zeep.exceptions import TransportError

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

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

0 comments on commit 6eada7c

Please sign in to comment.