Browse Source

try using PIP_TARGET

Getty Ritter 4 years ago
parent
commit
07fb7f396a
1 changed files with 10 additions and 6 deletions
  1. 10 6
      .drone.yml

+ 10 - 6
.drone.yml

@@ -7,27 +7,31 @@ workspace:
 steps:
 - name: setup
   image: python
+  environment:
+    PIP_TARGET: '/root/.pip'
   commands:
-  - pip install poetry --user
-  - pip install invoke --user
-  - export PATH=/root/.local/bin:PATH
+  - pip install poetry
+  - pip install invoke
   - poetry config virtualenvs.in-project true --local
   - poetry install
 
 - name: test
   image: python
+  environment:
+    PIP_TARGET: '/root/.pip'
   commands:
-  - export PATH=/root/.local/bin:PATH
   - inv test
 
 - name: typecheck
   image: python
+  environment:
+    PIP_TARGET: '/root/.pip'
   commands:
-  - export PATH=/root/.local/bin:PATH
   - poetry run inv tc
 
 - name: format
   image: python
+  environment:
+    PIP_TARGET: '/root/.pip'
   commands:
-  - export PATH=/root/.local/bin:PATH
   - poetry run inv checkfmt