diff --git a/.github/run_tests.sh b/.github/run_tests.sh index 558e0b64d3..02eb6ab8a1 100644 --- a/.github/run_tests.sh +++ b/.github/run_tests.sh @@ -10,5 +10,5 @@ fi pytest -m "$MARKER" -vv -ra --durations=0 --durations-min=0.001 | tee report.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1 echo "# Timing profile of ${MARKER}" >> $GITHUB_STEP_SUMMARY -python $GITHUB_WORKSPACE/.github/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY +python $GITHUB_WORKSPACE/.github/scripts/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY rm report.txt diff --git a/.github/build_job_summary.py b/.github/scripts/build_job_summary.py similarity index 100% rename from .github/build_job_summary.py rename to .github/scripts/build_job_summary.py diff --git a/.github/determine_testing_environment.py b/.github/scripts/determine_testing_environment.py similarity index 100% rename from .github/determine_testing_environment.py rename to .github/scripts/determine_testing_environment.py diff --git a/.github/import_test.py b/.github/scripts/import_test.py similarity index 100% rename from .github/import_test.py rename to .github/scripts/import_test.py diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 8317d7bec4..5b583934ef 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -50,7 +50,7 @@ jobs: shell: bash run: | changed_files="${{ steps.changed-files.outputs.all_changed_files }}" - python .github/determine_testing_environment.py $changed_files + python .github/scripts/determine_testing_environment.py $changed_files - name: Display testing environment shell: bash diff --git a/.github/workflows/core-test.yml b/.github/workflows/core-test.yml index a513d48f3b..1dbf0f5109 100644 --- a/.github/workflows/core-test.yml +++ b/.github/workflows/core-test.yml @@ -39,7 +39,7 @@ jobs: pip install tabulate echo "# Timing profile of core tests in ${{matrix.os}}" >> $GITHUB_STEP_SUMMARY # Outputs markdown summary to standard output - python ./.github/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY + python ./.github/scripts/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY cat $GITHUB_STEP_SUMMARY rm report.txt shell: bash # Necessary for pipeline to work on windows diff --git a/.github/workflows/full-test-with-codecov.yml b/.github/workflows/full-test-with-codecov.yml index ab4a083ae1..6a222f5e25 100644 --- a/.github/workflows/full-test-with-codecov.yml +++ b/.github/workflows/full-test-with-codecov.yml @@ -47,7 +47,7 @@ jobs: source ${{ github.workspace }}/test_env/bin/activate pytest -m "not sorters_external" --cov=./ --cov-report xml:./coverage.xml -vv -ra --durations=0 | tee report_full.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1 echo "# Timing profile of full tests" >> $GITHUB_STEP_SUMMARY - python ./.github/build_job_summary.py report_full.txt >> $GITHUB_STEP_SUMMARY + python ./.github/scripts/build_job_summary.py report_full.txt >> $GITHUB_STEP_SUMMARY cat $GITHUB_STEP_SUMMARY rm report_full.txt - uses: codecov/codecov-action@v4 diff --git a/.github/workflows/test_imports.yml b/.github/workflows/test_imports.yml index d39fc37242..a2631f6eb7 100644 --- a/.github/workflows/test_imports.yml +++ b/.github/workflows/test_imports.yml @@ -34,7 +34,7 @@ jobs: echo "## OS: ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY echo "---" >> $GITHUB_STEP_SUMMARY echo "### Import times when only installing only core dependencies " >> $GITHUB_STEP_SUMMARY - python ./.github/import_test.py >> $GITHUB_STEP_SUMMARY + python ./.github/scripts/import_test.py >> $GITHUB_STEP_SUMMARY shell: bash # Necessary for pipeline to work on windows - name: Install in full mode run: | @@ -44,5 +44,5 @@ jobs: # Add a header to separate the two profiles echo "---" >> $GITHUB_STEP_SUMMARY echo "### Import times when installing full dependencies in " >> $GITHUB_STEP_SUMMARY - python ./.github/import_test.py >> $GITHUB_STEP_SUMMARY + python ./.github/scripts/import_test.py >> $GITHUB_STEP_SUMMARY shell: bash # Necessary for pipeline to work on windows