Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test speed up petab tests #1088

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ jobs:
id: filter
with:
filters: |
petab_filer:
petab_filter:
- 'test/petab/**'
- 'pypesto/objective/amici/**'
- 'pypesto/petab/**'
- 'pypesto/predict/**'
- 'pypesto/result/predict.py'
- 'pypesto/**'
- name: Check out repository
uses: actions/checkout@v3

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test_action

# trigger
on:
pull_request:

# jobs
jobs:
Filtering:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.11']
# Required permissions
permissions:
pull-requests: read

steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
petab_filter:
- 'test/petab/**'
- 'pypesto/objective/amici/**'
- 'pypesto/petab/**'
- 'pypesto/predict/**'
- 'pypesto/result/predict.py'
- name: Run_tests
if: steps.filter.outputs.petab_filter == 'true'
timeout-minutes: 35
run: echo "Hello Tests"

- name: Dont_run_tests
if: steps.filter.outputs.petab_filter == 'false'
timeout-minutes: 35
run: echo "Not Hello Tests"
1 change: 1 addition & 0 deletions pypesto/version.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__version__ = "0.3.1"
# this is a test commit
2 changes: 1 addition & 1 deletion test/petab/test_amici_objective.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This is for testing the pypesto.Objective.
This is for testing the pypesto.Objective. And another test.
"""

import amici
Expand Down