Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.38 KiB
stages:
  - test
  - build

pages:
  image: zoo.smok.co/build/build:latest
  stage: build
  script:
    - cd docs
    - sphinx-apidoc -o . ../satella
    - make html
    - cd ..
    - mv docs/_build/html public
  artifacts:
    paths:
      - public

.test:
  stage: test
  before_script:
    - pip install --break-system-packages --upgrade pytest setuptools pip coverage nose2
    - pip install ".[dev,test]"
  script:
    - pytest -n 8 -vv --cov=satella
    - coverage xml
    - coverage report
  coverage: /TOTAL.*\s+(\d+\%)/

test_python37:
  extends: .test
  image: python:3.7
  allow_failure: true

test_python38:
  extends: .test
  image: python:3.8

test_python39:
  extends: .test
  image: python:3.9

test_pypy310:
  extends: .test
  image: pypy:3.10
  when: manual

test_pypy39:
  extends: .test
  image: pypy:3.9
  when: manual

test_python310:
  extends: .test
  image: python:3.10


test_python311:
  extends: .test
  image: python:3.11


build_python:
  stage: build
  before_script:
    - pip install --break-system-packages --upgrade setuptools pip twine
  script:
    - python setup.py bdist_wheel
    - mv dist/*.whl .
  artifacts:
    paths: