浏览代码

ci: Use prebuilt poetry container for tests

Sean 3 年之前
父节点
当前提交
5fe219bb59
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      .drone.yml

+ 1 - 3
.drone.yml

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