Skip to content

Commit

Permalink
Merge pull request #3 from novakzaballa/ci/test-workflows3
Browse files Browse the repository at this point in the history
ci: Test workflows 3
  • Loading branch information
novakzaballa authored Jan 16, 2024
2 parents 81a8207 + 4edd983 commit 380edaf
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/api-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,32 @@ name: API Pull Request Github Labeler
on:
workflow_run:
workflows:
- Test depends Github Labeler
- Github Labeler
types:
- completed


jobs:
test-job:
if: ${{ github.event_name == 'push' || contains( github.event.pull_request.labels.*.name, 'github') || contains( github.event.pull_request.labels.*.name, 'api') }}
name: API Unit Tests
runs-on: ubuntu-latest

steps:
- name: Install requirements
run: pip install -r requirements.txt
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
# - name: Install requirements
# run: pip install -r requirements.txt
- name: Run Tests
run: pytest

# defaults:
# run:
# working-directory: test
# working-directory: testd

# jobs:
# test-job:
Expand All @@ -29,7 +37,6 @@ jobs:
# - name: 'Trigger'
# run: echo 'The triggering workflow passed'

# if: ${{ github.event_name == 'push' || contains( github.event.pull_request.labels.*.name, 'github') || contains( github.event.pull_request.labels.*.name, 'api') }}

# services:
# postgres:
Expand All @@ -41,10 +48,7 @@ jobs:
# ports: ['5432:5432']
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

# strategy:
# max-parallel: 2
# matrix:
# python-version: ['3.10', '3.11']


# - uses: actions/setup-python@v4
# with:
Expand Down

0 comments on commit 380edaf

Please sign in to comment.