Browse Source

Try setting workspace to root and installing stuff as user

Getty Ritter 1 year ago
parent
commit
d35677d955
1 changed files with 5 additions and 7 deletions
  1. 5 7
      .drone.yml

+ 5 - 7
.drone.yml

@@ -1,31 +1,29 @@
 kind: pipeline
 name: default
 
+workspace:
+  path: /root
+
 steps:
 - name: setup
   image: python
   commands:
-  - python3 -m virtualenv .
-  - source ./bin/activate
-  - pip install poetry
-  - pip install invoke
+  - pip install poetry --user
+  - pip install invoke --user
   - poetry config virtualenvs.in-project true --local
   - poetry install
 
 - name: test
   image: python
   commands:
-  - source ./bin/activate
   - inv test
 
 - name: typecheck
   image: python
   commands:
-  - source ./bin/activate
   - poetry run inv tc
 
 - name: format
   image: python
   commands:
-  - source ./bin/activate
   - poetry run inv checkfmt