Commit 46eba02f authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch '50-ci-docker' into 'dev'

CI Docker, Python >= 3.7

See merge request !31
parents 09446184 b0bfa758
Pipeline #428654 passed with stages
in 1 minute and 2 seconds
......@@ -5,19 +5,31 @@ stages:
- coverage
unit:
image: python:3.7-slim
stage: unit
script: python3 -m doctest src/should.py
tags:
- cidocker
demo:
image: python:3.7-slim
before_script:
- apt-get update
- apt-get install -y bsdmainutils
stage: demo
script: python3 src/should.py --xml demo/*.should
artifacts:
reports:
junit: should.xml
tags:
- cidocker
coverage:
image: python:3.7-slim
stage: coverage
before_script:
- apt-get update
- apt-get install -y bsdmainutils
- pip3 install coverage
script:
- coverage erase
......@@ -25,3 +37,5 @@ coverage:
- coverage run -a src/should.py demo/*.should
- coverage report
coverage: '/^src/should.py.*?(\d+\%)$/'
tags:
- cidocker
......@@ -13,8 +13,9 @@ It also parses and tests JSON data.
`should` outputs reports in [`.tap` format](https://testanything.org/tap-specification.html)
and in JUnit-like XML.
`should` is written in Python with no external dependencies except from Python >= 3.4
and is intended to work on any command-line application
`should` is written in Python with no external dependencies except from any [Python 3 active release](https://www.python.org/downloads/).
As of 2022, we support Python >= 3.7.
`should` is intended to work on any command-line application
-- should your application outputs something, you can test it!
......
......@@ -22,9 +22,8 @@
import sys
if not (sys.version_info >= (3, 4)):
print("Python >= 3.4 required")
sys.exit(1)
if not (sys.version_info >= (3, 7)):
print("Python >= 3.7 supported")
__version_info__ = ('3','0','0')
__version__ = '.'.join(__version_info__)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment