Skip to content

Commit

Permalink
Add artifacts upload
Browse files Browse the repository at this point in the history
  • Loading branch information
goodsong81 committed Jun 3, 2024
1 parent 1d80f03 commit 01be61d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ jobs:
- name: Install tox
run: python -m pip install tox==4.4.6
- name: Run unit test
run: tox -vv -e pytest-${{ matrix.tox-env }} -- tests/unit --cov=openvino_xai
run: tox -vv -e pytest-${{ matrix.tox-env }} -- tests/unit --csv=.tox/pytest-${{ matrix.tox-env }}/unit-test.csv
--cov=openvino_xai --cov-report term --cov-report xml:.tox/pytest-${{ matrix.tox-env }}/unit-test-coverage.xml
- name: Upload artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: unit-test-results-${{ matrix.tox-env }}
path: |
.tox/pytest-${{ matrix.tox-env }}/*.csv
.tox/pytest-${{ matrix.tox-env }}/*.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

Integration-Test:
runs-on: ubuntu-22.04
Expand All @@ -79,6 +89,13 @@ jobs:
with:
python-version: "3.10"
- name: Install tox
run: python -m pip install --require-hashes --no-deps -r .ci/requirements/tox/requirements.txt
run: python -m pip install tox==4.4.6
- name: Run Integration Test
run: tox -vv -e pytest-py310 -- tests/integration
run: tox -vv -e pytest-py310 -- tests/integration --csv=.tox/pytest-${{ matrix.tox-env }}/intg-test.csv
- name: Upload artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: intg-test-results
path: .tox/pytest-py310/*.csv
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ classifiers = [
dev = [
"pytest",
"pytest-cov",
"pytest-csv",
"pre-commit==3.7.0",
"addict",
]
Expand Down

0 comments on commit 01be61d

Please sign in to comment.