diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a735fe7600157e762b16b7321f930a5f16079d0..6c7a596f0c450ba7136b355548bdfabec8eb8779 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,23 +12,23 @@ cache: - venv/ before_script: - - python --version # For debugging - - pip install virtualenv + - python3 --version + - python3 -m pip install --upgrade pip + - pip3 install virtualenv - virtualenv venv - source venv/bin/activate + - python3 -m pip install --upgrade numpy + - python3 -m pip install --upgrade coverage test: script: - - python setup.py test - - pip install tox flake8 # you can also use tox - - tox -e py36,flake8 + - python3 -m pip install -e . + - make -run: +build_package: script: - - python setup.py bdist_wheel - # an alternative approach is to install and run: - - pip install dist/* - # run the command here + - python3 -m pip install --upgrade build + - python3 -m build artifacts: paths: - dist/*.whl