Browse Source

use caching of poetry packages

Rodja Trappe 2 năm trước cách đây
mục cha
commit
80a4547033
1 tập tin đã thay đổi với 4 bổ sung10 xóa
  1. 4 10
      .github/workflows/test.yml

+ 4 - 10
.github/workflows/test.yml

@@ -11,25 +11,19 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     timeout-minutes: 10
     timeout-minutes: 10
     steps:
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: set up Python
       - name: set up Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
         with:
           python-version: ${{ matrix.python }}
           python-version: ${{ matrix.python }}
       - name: set up Poetry
       - name: set up Poetry
-        uses: abatilo/actions-poetry@v2.0.0
-        with:
-          poetry-version: "1.1.6"
-      - name: install dependencies
-        run: |
-          poetry config virtualenvs.create false --local
-          poetry install
+        uses: benjavicente/setup-poetry@main
       - name: test startup
       - name: test startup
         run: ./test_startup.sh
         run: ./test_startup.sh
       - name: setup chromedriver
       - name: setup chromedriver
         uses: nanasess/setup-chromedriver@v1
         uses: nanasess/setup-chromedriver@v1
       - name: pytest
       - name: pytest
-        run: pytest
+        run: poetry pytest
 
 
   slack:
   slack:
     needs:
     needs: