SickGear/.gitlab-ci.yml
2024-08-10 12:36:48 +01:00

75 lines
1.7 KiB
YAML

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"