Skip to content

Commit 6380edb

Browse files
committed
Optimize installations
1 parent 27be20f commit 6380edb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ variables:
99
before_script:
1010
- python -m venv venv
1111
- source venv/bin/activate
12-
- pip install -U -e .
13-
- pip install -U -e .[docs]
14-
- pip install -U -e .[test]
1512

1613
stages:
1714
- build
@@ -29,6 +26,7 @@ cache:
2926
build:
3027
stage: build
3128
script:
29+
- pip install -U -e .
3230
- pip install wheel
3331
- python setup.py sdist bdist_wheel
3432
artifacts:
@@ -55,6 +53,7 @@ sonarcloud-check:
5553
docs:
5654
stage: build
5755
script:
56+
- pip install -U -e .[docs]
5857
- cd docs
5958
- make html
6059
artifacts:
@@ -65,10 +64,11 @@ docs:
6564
coverage:
6665
stage: test
6766
script:
68-
- coverage run setup.py test
69-
- coverage report
70-
- coverage html
71-
- coverage xml
67+
- pip install -U -e .[test]
68+
- coverage run setup.py test
69+
- coverage report
70+
- coverage html
71+
- coverage xml
7272
artifacts:
7373
name: Coverage_Report
7474
paths:
@@ -82,6 +82,7 @@ pages:
8282
dependencies:
8383
- docs
8484
- coverage
85+
before_script: [ ]
8586
script:
8687
- mkdir public
8788
- mv htmlcov/ public/coverage/

0 commit comments

Comments
 (0)