Skip to content

Commit

Permalink
ci: Update codecov action version
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jul 3, 2023
1 parent 9d21480 commit b4b2814
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ jobs:
searchEngine: ${{ matrix.searchEngine }}
searchEngineVersion: ${{ matrix.searchEngineVersion }}
coverageReport: coverage
pytestArgs: |
--ignore=tests/training \
--ignore=tests/client/feedback/training \
--ignore=tests/monitoring \
--ignore=tests/listeners
pytestArgs: tests/client/test_api.py tests/server/api/v1/test_datasets.py
#pytestArgs: |
# --ignore=tests/training \
# --ignore=tests/client/feedback/training \
# --ignore=tests/monitoring \
# --ignore=tests/listeners
secrets: inherit

run_tests_extra:
Expand All @@ -80,11 +81,12 @@ jobs:
# continue-on-error: true
with:
coverageReport: coverage-extra
pytestArgs: |
tests/training \
tests/client/feedback/training \
tests/monitoring \
tests/listeners
pytestArgs: tests/client/test_api.py tests/metrics/test_common_metrics.py
#pytestArgs: |
# tests/training \
# tests/client/feedback/training \
# tests/monitoring \
# tests/listeners
secrets: inherit

push_coverage:
Expand All @@ -93,13 +95,18 @@ jobs:
- run_tests
- run_tests_extra
steps:
- name: Checkout Code 🛎
uses: actions/checkout@v2
- uses: actions/download-artifact@v3
- name: Copy all reports
run: find coverage-report*/ -name "*.xml" -exec mv '{}' . \;
- name: Display current files structure
run: ls -R
- name: Upload Coverage reports to Codecov 📦
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

build_python_package:
name: Build Argilla python package
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/run-python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run:
shell: bash -l {0}
env:
COVERAGE_REPORT: ${{ inputs.coverageReport }}-${{ inputs.searchEngine }}-${{ inputs.searchEngineVersion }}.xml
COVERAGE_REPORT: ${{ inputs.coverageReport }}-${{ inputs.searchEngine }}-${{ inputs.searchEngineVersion }}
steps:
- name: Checkout Code 🛎
uses: actions/checkout@v2
Expand Down Expand Up @@ -84,10 +84,14 @@ jobs:
run: |
pip install -e ".[server,listeners]"
alembic upgrade head
pytest --cov=argilla --cov-report=xml:${{ env.COVERAGE_REPORT }} ${{ inputs.pytestArgs }}
pytest --cov=argilla --cov-report=xml:${{ env.COVERAGE_REPORT }}.xml ${{ inputs.pytestArgs }}
- name: Upload Coverage reports to Codecov 📦
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Upload coverage report artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report-${{ env.COVERAGE_REPORT }}
path: ${{ env.COVERAGE_REPORT }}
path: ${{ env.COVERAGE_REPORT }}.xml

0 comments on commit b4b2814

Please sign in to comment.