Skip to content

Commit

Permalink
Move testing scripts into scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Sep 3, 2024
1 parent 1964f86 commit 8e9995d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/full-test-with-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_imports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 8e9995d

Please sign in to comment.