mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-15 01:15:05 +00:00
Change add Gitlab tests
This commit is contained in:
parent
13763cab4b
commit
80cffd7cef
2 changed files with 80 additions and 0 deletions
75
.gitlab-ci.yml
Normal file
75
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
test 3.8:
|
||||||
|
image: python:3.8
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- pip install responses
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install coveralls
|
||||||
|
script:
|
||||||
|
- cd ./tests
|
||||||
|
- coverage run --source=.. --omit=../lib/* ./all_tests.py
|
||||||
|
when: manual
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "dev"
|
||||||
|
|
||||||
|
test 3.9:
|
||||||
|
image: python:3.9
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- pip install responses
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install coveralls
|
||||||
|
script:
|
||||||
|
- cd ./tests
|
||||||
|
- coverage run --source=.. --omit=../lib/* ./all_tests.py
|
||||||
|
when: manual
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "dev"
|
||||||
|
|
||||||
|
test 3.10:
|
||||||
|
image: python:3.10
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- pip install responses
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install coveralls
|
||||||
|
script:
|
||||||
|
- cd ./tests
|
||||||
|
- coverage run --source=.. --omit=../lib/* ./all_tests.py
|
||||||
|
when: manual
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "dev"
|
||||||
|
|
||||||
|
test 3.11:
|
||||||
|
image: python:3.11
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- pip install responses
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install coveralls
|
||||||
|
script:
|
||||||
|
- cd ./tests
|
||||||
|
- coverage run --source=.. --omit=../lib/* ./all_tests.py
|
||||||
|
when: manual
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "dev"
|
||||||
|
|
||||||
|
test 3.12:
|
||||||
|
image: python:3.12
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- pip install responses
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install coveralls
|
||||||
|
script:
|
||||||
|
- cd ./tests
|
||||||
|
- coverage run --source=.. --omit=../lib/* ./all_tests.py
|
||||||
|
when: manual
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "dev"
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
warnings.filterwarnings('ignore', module=r'.*fuz.*', message='.*Sequence.*')
|
warnings.filterwarnings('ignore', module=r'.*fuz.*', message='.*Sequence.*')
|
||||||
warnings.filterwarnings('ignore', module=r'.*connectionpool.*', message='.*certificate verification.*')
|
warnings.filterwarnings('ignore', module=r'.*connectionpool.*', message='.*certificate verification.*')
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
from sickgear import properFinder
|
from sickgear import properFinder
|
||||||
|
|
||||||
import sickgear
|
import sickgear
|
||||||
|
|
Loading…
Reference in a new issue