Skip to content

Commit

Permalink
👷 Extract prepare action.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Jun 29, 2024
1 parent 0b37f6e commit ec8586d
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test

on:
push:
branches:
Expand All @@ -7,27 +9,18 @@ on:
- '**'

jobs:
prepare:
uses: ./.github/workflows/prepare.yaml

test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Poetry
uses: abatilo/actions-poetry@v3
uses: packetcoders/action-setup-cache-python-poetry@main
with:
poetry-version: '1.8.3'

- name: Install dependencies
run: |
poetry install
python-version: 3.12
poetry-version: 1.8.3
- name: Run pytest
run: |
poetry run pytest
run: poetry run pytest

0 comments on commit ec8586d

Please sign in to comment.