From 5a2d076f562780ab45ddf6b166fd5137c7de257a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= <tlovinator@gmail.com>
Date: Sun, 25 Sep 2022 21:24:23 +0200
Subject: [PATCH] Update pytest.yml workflow

Rename build to test
Remove macos-latest
Remove abatilo/actions-poetry and install Poetry with  pipx instead
Remove name for poetry install and poetry run pytest
Cache dependencies
---
 .github/workflows/pytest.yml | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml
index c072e7c..15ac8e4 100644
--- a/.github/workflows/pytest.yml
+++ b/.github/workflows/pytest.yml
@@ -6,12 +6,12 @@ env:
   WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
   UPLOAD_FOLDER: ./Uploads
 jobs:
-  build:
+  test:
     strategy:
       fail-fast: false
       matrix:
         python-version: [ "3.9", "3.10" ]
-        os: [ ubuntu-latest, macos-latest, windows-latest ]
+        os: [ ubuntu-latest, windows-latest ]
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v3
@@ -22,11 +22,7 @@ jobs:
         uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
-      - name: Run image
-        uses: abatilo/actions-poetry@v2
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-      - name: Install dependencies
-        run: poetry install
-      - name: Run tests
-        run: poetry run pytest
\ No newline at end of file
+          cache: 'poetry'
+      - run: pipx install poetry
+      - run: poetry install
+      - run: poetry run pytest
\ No newline at end of file