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
This commit is contained in:
2022-09-25 21:24:23 +02:00
parent 564cd20f6b
commit 5a2d076f56

View File

@ -6,12 +6,12 @@ env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
UPLOAD_FOLDER: ./Uploads UPLOAD_FOLDER: ./Uploads
jobs: jobs:
build: test:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [ "3.9", "3.10" ] python-version: [ "3.9", "3.10" ]
os: [ ubuntu-latest, macos-latest, windows-latest ] os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -22,11 +22,7 @@ jobs:
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Run image cache: 'poetry'
uses: abatilo/actions-poetry@v2 - run: pipx install poetry
with: - run: poetry install
token: ${{ secrets.GITHUB_TOKEN }} - run: poetry run pytest
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest