Эх сурвалжийг харах

ci: Use prebuilt poetry container for tests

Sean 3 жил өмнө
parent
commit
5fe219bb59
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      .drone.yml

+ 1 - 3
.drone.yml

@@ -4,7 +4,7 @@ name: default
 
 
 steps:
 steps:
   - name: test
   - name: test
-    image: python:3.10
+    image: git.snas.black-burn.ch/sean/poetry-in-a-container:3.10
     volumes:
     volumes:
       - name: poetry_cache
       - name: poetry_cache
         path: /root/.cache/pypoetry/virtualenvs
         path: /root/.cache/pypoetry/virtualenvs
@@ -15,8 +15,6 @@ steps:
       - name: pre_commit_environments
       - name: pre_commit_environments
         path: /root/.cache/pre-commit
         path: /root/.cache/pre-commit
     commands:
     commands:
-      - curl -sSL https://install.python-poetry.org | python3 -
-      - export PATH="/root/.local/bin:$PATH"
       - poetry install
       - poetry install
       - poetry run pre-commit run -a
       - poetry run pre-commit run -a