Skip to content

Commit

Permalink
Merge pull request #284 from mdekstrand/tweak/cov-report
Browse files Browse the repository at this point in the history
Upload coverage at end of build pipeline
  • Loading branch information
mdekstrand committed Oct 30, 2021
2 parents 78c0f25 + 2913e11 commit 69b6aa5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,19 @@ jobs:
run: |
python -m pytest --cov=lenskit --cov-append -m 'not slow' --log-file=test-nojit.log
- name: Aggreagate Coverage Data
run: |
coverage xml
- name: Upload logs
uses: actions/upload-artifact@v2
with:
name: log-conda-${{matrix.platform}}-py${{matrix.python}}-${{matrix.blas}}
path: |
coverage.xml
test*.log
emissions.csv
- name: Aggreagate Coverage Data
run: |
coverage xml
- uses: codecov/codecov-action@v1

check-docs:
name: Docs, Examples, and Eval
timeout-minutes: 30
Expand Down Expand Up @@ -155,22 +154,19 @@ jobs:
# - name: Validate Examples
# run: |
# python -m pytest --nbval-lax --cov=lenskit --cov-append examples --log-file test-examples.log
- name: Aggreagate Coverage Data
run: |
coverage xml
- name: Upload logs
uses: actions/upload-artifact@v2
with:
name: log-check-docs
path: |
test*.log
coverage.xml
emissions.csv
- name: Aggreagate Coverage Data
run: |
coverage xml
- name: Upload Coverage
uses: codecov/codecov-action@v1

vanilla:
name: Vanilla Python ${{matrix.python}} on ${{matrix.platform}}
runs-on: ${{matrix.platform}}-latest
Expand Down Expand Up @@ -211,15 +207,13 @@ jobs:
- name: Aggreagate Coverage Data
run: coverage xml

- name: Upload coverage
uses: codecov/codecov-action@v1

- name: Upload logs
uses: actions/upload-artifact@v2
with:
name: log-vanilla-${{matrix.platform}}-py${{matrix.python}}
path: |
test*.log
coverage.xml
emissions.csv
mindep:
Expand Down Expand Up @@ -253,11 +247,9 @@ jobs:
name: log-mindep
path: |
test*.log
coverage.xml
emissions.csv
- name: Upload coverage
uses: codecov/codecov-action@v1

results:
name: Test Suite Results
runs-on: ubuntu-latest
Expand All @@ -280,6 +272,11 @@ jobs:
- name: List log files
run: ls -lR test-logs

- name: Upload coverage
uses: codecov/codecov-action@v2
with:
directory: test-logs/

- name: Upload all test data
uses: actions/upload-artifact@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ build/
dist/
.coverage*
coverage.xml
cov-reports/
test-logs/
htmlcov/
my-eval/
doc/data/
Expand Down
6 changes: 3 additions & 3 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ testpaths =
doctest_plus=enabled
doctest_subpackage_requires =
lenskit/algorithms/svd* = scikit-learn
lenskit/algorithms/implicit* = implicit
lenskit/algorithms/hpf* = hpfrec
lenskit/algorithms/tf* = tensorflow>=2
lenskit/algorithms/implicit* = lenskit-implicit
lenskit/algorithms/hpf* = lenskit-hpf
lenskit/algorithms/tf* = lenskit-tf
filterwarnings =
ignore:::pyarrow[.*]
ignore:.*matrix subclass.*:PendingDeprecationWarning
Expand Down

0 comments on commit 69b6aa5

Please sign in to comment.