Skip to content

Commit

Permalink
Update tests workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
milistu committed May 4, 2024
1 parent d916937 commit 8da511d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
test_database:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.paths == 'database/**' }}
if: ${{ contains(github.event.pull_request.changed_files, 'database/') }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
Expand All @@ -29,7 +29,7 @@ jobs:

test_router:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.paths == 'router/**' }}
if: ${{ contains(github.event.pull_request.changed_files, 'router/') }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
Expand All @@ -43,7 +43,7 @@ jobs:

test_llm:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.paths == 'llm/**' }}
if: ${{ contains(github.event.pull_request.changed_files, 'llm/') }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
Expand All @@ -57,13 +57,13 @@ jobs:

test_all:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.paths == 'app.py' }}
if: ${{ contains(github.event.pull_request.changed_files, 'app.py') }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run All Tests
Expand Down

0 comments on commit 8da511d

Please sign in to comment.