Skip to content

Commit

Permalink
workflow-2612
Browse files Browse the repository at this point in the history
 - Activate fprime venv in reusable workflow before every venv related call.
   Each step in workflow file runs in a separate shell.
  • Loading branch information
rlcheng committed Aug 26, 2024
1 parent 22bdc56 commit 4ee39ce
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/reusable_fit_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
runs-on: ${{ inputs.runs_on }}
steps:
- name: "Start FSW and GDS"
run: ${{ inputs.start_cmd }}
run: |
. ./fprime-venv/bin/activate
${{ inputs.start_cmd }}
- name: "Run Integration tests"
run: |
. ./fprime-venv/bin/activate
sleep 12
pytest ${{ inputs.test_path }} --dictionary ${{ inputs.dict_path }} -rP
Expand All @@ -57,23 +60,30 @@ jobs:
run: ${{ inputs.start_cmd }}
- name: "Start GDS"
run: |
. ./fprime-venv/bin/activate
fprime-gds -n --dictionary ${{ inputs.dict_path }} --gui none ${{ inputs.gds_args }} &
sleep 12
- name: "Run Integration tests"
run: pytest ${{ inputs.test_path }} -rP --dictionary ${{ inputs.dict_path }} --logs ./
run: |
. ./fprime-venv/bin/activate
pytest ${{ inputs.test_path }} -rP --dictionary ${{ inputs.dict_path }} --logs ./
gds-fsw:
if: ${{ inputs.platform_setup == 'gds-fsw' }}
runs-on: ${{ inputs.runs_on }}
steps:
- name: "Start GDS"
run: fprime-gds -n --dictionary ${{ inputs.dict_path }} --gui none ${{ inputs.gds_args }} &
run: |
. ./fprime-venv/bin/activate
fprime-gds -n --dictionary ${{ inputs.dict_path }} --gui none ${{ inputs.gds_args }} &
- name: "Start FSW"
run: |
${{ inputs.start_cmd }}
sleep 12
- name: "Run Integration tests"
run: pytest ${{ inputs.test_path }} --dictionary ${{ inputs.dict_path }} -rP
run: |
. ./fprime-venv/bin/activate
pytest ${{ inputs.test_path }} --dictionary ${{ inputs.dict_path }} -rP
upload-fit-artifact:
runs-on: ${{ inputs.runs_on }}
Expand Down

0 comments on commit 4ee39ce

Please sign in to comment.