Running with gitlab-runner 14.10.0 (c6bb62f6)
  on labrunner 7syfngcj
section_start:1650877821:resolve_secrets
Resolving secrets
section_end:1650877821:resolve_secrets
section_start:1650877821:prepare_executor
Preparing the "docker" executor
Using Docker executor with image python:latest ...
Pulling docker image python:latest ...
Using docker image sha256:2b7ca628da40dc0cdfc6bf518b0f8cc0c5c3b83e89960e265e540cc7502ceee5 for python:latest with digest python@sha256:edc8e6a550e4be7c340df18b252364554ea46a5ac14be4dcad711c285d25d1db ...
section_end:1650877826:prepare_executor
section_start:1650877826:prepare_script
Preparing environment
Running on runner-7syfngcj-project-1002-concurrent-0 via labrunner...
section_end:1650877828:prepare_script
section_start:1650877828:get_sources
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/amaal/amal_test/.git/
Checking out a5e1a939 as master...

Skipping Git submodules setup
section_end:1650877831:get_sources
section_start:1650877831:step_script
Executing "step_script" stage of the job script
Using docker image sha256:2b7ca628da40dc0cdfc6bf518b0f8cc0c5c3b83e89960e265e540cc7502ceee5 for python:latest with digest python@sha256:edc8e6a550e4be7c340df18b252364554ea46a5ac14be4dcad711c285d25d1db ...
$ cat /proc/version
Linux version 3.10.0-1160.62.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Apr 5 16:57:59 UTC 2022
$ python -V
Python 3.10.4
$ pip install pytest flake8
Collecting pytest
  Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 KB 5.1 MB/s eta 0:00:00
Collecting flake8
  Downloading flake8-4.0.1-py2.py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.1/64.1 KB 1.6 MB/s eta 0:00:00
Collecting py>=1.8.2
  Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.7/98.7 KB 105.9 kB/s eta 0:00:00
Collecting packaging
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 KB 995.9 kB/s eta 0:00:00
Collecting attrs>=19.2.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 KB 1.5 MB/s eta 0:00:00
Collecting tomli>=1.0.0
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting iniconfig
  Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting pluggy<2.0,>=0.12
  Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting pycodestyle<2.9.0,>=2.8.0
  Downloading pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 KB 887.2 kB/s eta 0:00:00
Collecting pyflakes<2.5.0,>=2.4.0
  Downloading pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.7/69.7 KB 1.7 MB/s eta 0:00:00
Collecting mccabe<0.7.0,>=0.6.0
  Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.8-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.5/98.5 KB 2.5 MB/s eta 0:00:00
Installing collected packages: mccabe, iniconfig, tomli, pyparsing, pyflakes, pycodestyle, py, pluggy, attrs, packaging, flake8, pytest
Successfully installed attrs-21.4.0 flake8-4.0.1 iniconfig-1.1.1 mccabe-0.6.1 packaging-21.3 pluggy-1.0.0 py-1.11.0 pycodestyle-2.8.0 pyflakes-2.4.0 pyparsing-3.0.8 pytest-7.1.2 tomli-2.0.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
$ if [ -f requirements.txt ]; then pip install -r requirements.txt;fi
$ pytest example.py
============================= test session starts ==============================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: /builds/amaal/amal_test
collected 2 items

example.py .F                                                            [100%]

=================================== FAILURES ===================================
________________________________ test_subtract _________________________________

    def test_subtract():
>       assert subtract(2, 3) == -1
E       assert 5 == -1
E        +  where 5 = subtract(2, 3)

example.py:16: AssertionError
=========================== short test summary info ============================
FAILED example.py::test_subtract - assert 5 == -1
========================= 1 failed, 1 passed in 0.03s ==========================
section_end:1650877845:step_script
section_start:1650877845:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1650877847:cleanup_file_variables
ERROR: Job failed: exit code 1