Skip to content

Commit

Permalink
New python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayarri committed Jan 10, 2025
1 parent fe25829 commit 9237da4
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,38 @@ jobs:
name: Filter Files
runs-on: self-hosted
outputs:
file1_changed: ${{ steps.filter.outputs.file1 }}
biobb_wf_ligand_parameterization: ${{ steps.filter.outputs.biobb_wf_ligand_parameterization }}
biobb_wf_md_setup: ${{ steps.filter.outputs.biobb_wf_md_setup }}
#file2_changed: ${{ steps.filter.outputs.file2 }}
steps:
- name: Filter Changed Files
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
file1:
biobb_wf_ligand_parameterization:
- "biobb_wf_ligand_parameterization/python/workflow.env.yml"
# file2:
# - "file2"
test1:
name: Run Test1
biobb_wf_md_setup:
- "biobb_wf_md_setup/python/workflow.env.yml"
biobb_wf_ligand_parameterization:
name: Run Tests biobb_wf_ligand_parameterization
needs: filter-files
uses: ./.github/workflows/reusable.yaml
with:
test_name: Test1
file: file1
if: needs.filter-files.outputs.file1_changed == 'true'
test_name: TEST biobb_wf_ligand_parameterization
file: biobb_wf_ligand_parameterization
if: needs.filter-files.outputs.biobb_wf_ligand_parameterization == 'true'
#if: contains(github.event.commits.*.modified, 'biobb_wf_ligand_parameterization/python/workflow.env.yml')

biobb_wf_md_setup:
name: Run Tests biobb_wf_md_setup
needs: filter-files
uses: ./.github/workflows/reusable.yaml
with:
test_name: TEST biobb_wf_md_setup
file: biobb_wf_md_setup
if: needs.filter-files.outputs.biobb_wf_md_setup == 'true'

# test2:
# name: Run Test2
# uses: ./.github/workflows/reusable.yaml
Expand Down

0 comments on commit 9237da4

Please sign in to comment.