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 3a1b6e5 commit 7cdf2fa
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,26 @@ jobs:
# wf_name: ${{ matrix.wf_name }}

- name: Check out repository code
if: contains(needs.detect-files.outputs.changed_files, matrix.file)
uses: actions/checkout@v4

- run: echo "Repository -> ${{ github.repository }}"
- run: echo "Branch -> ${{ github.ref }}"
- run: echo "Trigger event -> ${{ github.event_name }}"
- run: echo "Runner OS -> ${{ runner.os }}"
# - run: echo "Repository -> ${{ github.repository }}"
# - run: echo "Branch -> ${{ github.ref }}"
# - run: echo "Trigger event -> ${{ github.event_name }}"
# - run: echo "Runner OS -> ${{ runner.os }}"

- name: List files in the repository
run: |
ls ${{ github.workspace }}
# - name: List files in the repository
# run: |
# ls ${{ github.workspace }}

- name: Remove all micromamba installations
if: contains(needs.detect-files.outputs.changed_files, matrix.file)
run: |
rm -rf $HOME/.bash_profile $HOME/.conda $HOME/micromamba $HOME/micromamba-bin 2>/dev/null
touch $HOME/.bash_profile
- name: setup-micromamba
if: contains(needs.detect-files.outputs.changed_files, matrix.file)
uses: mamba-org/[email protected]
with:
generate-run-shell: true
Expand All @@ -75,18 +78,19 @@ jobs:
create-args: >-
pytest
- name: List installed package versions
shell: bash -l {0}
run: micromamba list
# - name: List installed package versions
# shell: bash -l {0}
# run: micromamba list

- name: Run tests
if: contains(needs.detect-files.outputs.changed_files, matrix.file)
shell: bash -l {0}
run: |
export PYTHONPATH=.:./biobb_common:$PYTHONPATH
cd biobb_wf_ligand_parameterization/tests/python
# Production one
pytest biobb_wf_ligand_parameterization.py --config ../../python/workflow.yml --remove
pytest ${{ inputs.wf_name }}.py --config ../../python/workflow.yml --remove

0 comments on commit 7cdf2fa

Please sign in to comment.