Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko committed Nov 9, 2023
1 parent 6377310 commit cf6ca7a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
}}
uses: ./.github/workflows/interface-benchmarks.yml
with:
branch: add-pytest-benchmarks-CI
#branch: add-pytest-benchmarks
branch: v0.33.1

# Run a 'lightened' version of the CI on Pull Requests by default
# Unless the label `ci:run-full-test-suite` is attached to the PR.
Expand Down
38 changes: 22 additions & 16 deletions .github/workflows/unit-test-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,28 @@ jobs:
# Calling PyTest by invoking Python first as that adds the current directory to sys.path
run: python -m pytest ${{ inputs.pytest_test_directory }} ${{ inputs.pytest_benchmark_flags }} ${{ inputs.pytest_additional_args }} ${{ env.PYTEST_MARKER }}

- name: Convert pytest benchmark JSON to XUBM-JSON
if: ${{ steps.continue.outputs.confirm == 'true' }}
run: python scripts/benchmarks/convert_pytest_JSON_to_XUBM.py --author ${{ github.event.pull_request.user.login }}
# If this is a reference benchmark and we don't hit the cache, move file to the cached directory.
- name: Move reference pytest benchmark file to cache
if: ${{ steps.continue.outputs.reference_benchmarks == 'true' && hashFiles('benchmarks_xubm.json') != ''}}
run: mkdir -p ${{ github.workspace}}/benchmark_reference && cp benchmarks_xubm.json "$_"

- name: Convert pytest benchmark JSON files to XUBM-JSON
if: ${{ steps.continue.outputs.local_benchmarks == 'true' }}
run: |
python scripts/benchmarks/convert_pytest_JSON_to_XUBM.py --author ${{ github.event.pull_request.user.login }}
cd benchmark_reference
python scripts/benchmarks/convert_pytest_JSON_to_XUBM.py --author ${{ github.event.pull_request.user.login }}
- name: checking 1
if: ${{ steps.continue.outputs.local_benchmarks == 'true' }}
run: |
ls
- name: checking 2
if: ${{ steps.continue.outputs.local_benchmarks == 'true' }}
run: |
cd benchmark_reference
ls
# If this is a PR benchmark, upload the data as an artifact.
- name: Upload PR pytest benchmark file
Expand All @@ -181,17 +200,4 @@ jobs:
name: ${{ inputs.benchmarks_name }}
path: benchmarks_xubm.json

# If this is a reference benchmark and we don't hit the cache, move file to the cached directory.
- name: Move reference pytest benchmark file to cache
if: ${{ steps.continue.outputs.reference_benchmarks == 'true' && hashFiles('benchmarks_xubm.json') != ''}}
run: mkdir -p ${{ github.workspace}}/benchmark_reference && cp benchmarks_xubm.json "$_"

- name: checking environment
run: |
ls
- name: checking
run: |
mkdir -p ${{ github.workspace}}/benchmark_reference
ls benchmark_reference

0 comments on commit cf6ca7a

Please sign in to comment.