Skip to content
Snippets Groups Projects
.gitlab-ci.yml 741 B
stages:
  - test
  - build


.test_python:
  stage: test
  before_script:
    - pip install --upgrade Cython setuptools pip
    - git clone https://github.com/smok-serwis/minijson.git
    - cd minijson
    - python setup.py install
    - cd ..
    - rm -rf minijson
    - pip install -r requirements.txt
    - python setup.py build_ext --inplace
  variables:
    CI: "1"
  script:
    - python -m coverage run -m nose2 -vv -F
    - python -m coverage report
  coverage: /TOTAL.*\s+(\d+\%)/


test_python38:
  extends: .test_python
  image: python:3.8



test_python39:
  extends: .test_python
  image: python:3.9



test_python310:
  extends: .test_python
  image: python:3.10



test_python311:
  extends: .test_python
  image: python:3.11