Skip to content

Commit

Permalink
Merge pull request #325 from mdekstrand/tweak/common-test
Browse files Browse the repository at this point in the history
Use common test infra
  • Loading branch information
mdekstrand committed Dec 11, 2022
2 parents 3fa28f9 + 2b518fd commit bab7293
Showing 1 changed file with 13 additions and 56 deletions.
69 changes: 13 additions & 56 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,10 @@ 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
- name: Process Test Results
uses: lenskit/lkbuild/actions/save-test-results@main
with:
name: log-conda-${{matrix.platform}}-py${{matrix.python}}-${{matrix.blas}}
path: |
coverage.xml
test*.log
emissions.csv
artifact-name: test-conda-${{matrix.platform}}-py${{matrix.python}}-${{matrix.blas}}

check-docs:
name: Docs, Examples, and Eval
Expand Down Expand Up @@ -132,18 +124,10 @@ 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
- name: Process Test Results
uses: lenskit/lkbuild/actions/save-test-results@main
with:
name: log-check-docs
path: |
test*.log
coverage.xml
emissions.csv
artifact-name: test-check-docs

vanilla:
name: Vanilla Python ${{matrix.python}} on ${{matrix.platform}}
Expand Down Expand Up @@ -174,17 +158,10 @@ jobs:
run: |
python -m pytest --cov=lenskit --cov-report=xml --log-file=test.log
- name: Aggreagate Coverage Data
run: coverage xml

- name: Upload logs
uses: actions/upload-artifact@v2
- name: Process Test Results
uses: lenskit/lkbuild/actions/save-test-results@main
with:
name: log-vanilla-${{matrix.platform}}-py${{matrix.python}}
path: |
test*.log
coverage.xml
emissions.csv
artifact-name: test-vanilla-${{matrix.platform}}-py${{matrix.python}}

mindep:
name: Minimal Supported Dependencies
Expand Down Expand Up @@ -212,14 +189,10 @@ jobs:
run: |
python -m pytest --cov=lenskit --cov-report=xml --log-file test.log
- name: Upload logs
uses: actions/upload-artifact@v2
- name: Process Test Results
uses: lenskit/lkbuild/actions/save-test-results@main
with:
name: log-mindep
path: |
test*.log
coverage.xml
emissions.csv
artifact-name: test-mindeps

results:
name: Test Suite Results
Expand All @@ -236,20 +209,4 @@ jobs:
with:
fetch-depth: 0

- uses: actions/download-artifact@v2
with:
path: test-logs

- 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:
name: test-outputs
path: test-logs
- uses: lenskit/lkbuild/actions/report-test-results@main

0 comments on commit bab7293

Please sign in to comment.