From 83db1c23e2f0bc45ab89efa8112a6b824c2316d3 Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Thu, 3 Mar 2022 07:19:34 +0000 Subject: [PATCH 1/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a735fe..5712c95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,23 +12,19 @@ cache: - venv/ before_script: - - python --version # For debugging - - pip install virtualenv - - virtualenv venv - - source venv/bin/activate + - python3 --version # For debugging + - python3 -m pip install --upgrade pip test: script: - - python setup.py test + - python3 setup.py test - pip install tox flake8 # you can also use tox - tox -e py36,flake8 run: 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 -- GitLab From c9dc2e73422a63b82fd8fb4422236b74d63b4c11 Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Thu, 3 Mar 2022 07:26:08 +0000 Subject: [PATCH 2/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5712c95..f3e58a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,6 @@ variables: cache: paths: - .cache/pip - - venv/ before_script: - python3 --version # For debugging @@ -17,9 +16,8 @@ before_script: test: script: - - python3 setup.py test - - pip install tox flake8 # you can also use tox - - tox -e py36,flake8 + - python3 -m pip install --upgrade coverage + - make run: script: -- GitLab From 4f7e60f67bfcabb8db4f79088f63cde87ef1ddc5 Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Thu, 3 Mar 2022 07:28:08 +0000 Subject: [PATCH 3/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3e58a3..b8838be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ before_script: test: script: + - python3 -m pip install --upgrade numpy # stupid - can't we read this out of the package requirements? Or install first, then test? - python3 -m pip install --upgrade coverage - make -- GitLab From 2f330ec770036ae8c914abba577c3495d7483d0a Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Thu, 3 Mar 2022 07:48:46 +0000 Subject: [PATCH 4/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8838be..6c7a596 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,18 +9,23 @@ variables: cache: paths: - .cache/pip + - venv/ before_script: - - python3 --version # For debugging + - 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: - - python3 -m pip install --upgrade numpy # stupid - can't we read this out of the package requirements? Or install first, then test? - - python3 -m pip install --upgrade coverage + - python3 -m pip install -e . - make -run: +build_package: script: - python3 -m pip install --upgrade build - python3 -m build -- GitLab