Skip to content

Commit

Permalink
refacrtor reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Oct 2, 2023
1 parent 292b5b3 commit f3ad2d5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up services
run: |
if [ ${{ inputs.directory }} == 'matomo-api' ]; then
docker-compose -f matomo-api/docker-compose-tests.yaml up -d
fi
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand All @@ -30,10 +25,13 @@ jobs:
environment: production
steps:
- uses: actions/checkout@v3

- name: Set up services
run: |
if [ ${{ inputs.directory }} == 'matomo-api' ]; then
docker-compose -f matomo-api/docker-compose-tests.yaml up -d
fi
- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Test
run: pip install poetry && cd ${{ inputs.directory }} && poetry install && poetry run pytest

0 comments on commit f3ad2d5

Please sign in to comment.