Merge pull request #109 from metabrainz/improve-error-handling #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Troi Recommendation Playground Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt -r requirements_test.txt | |
- name: Test with pytest | |
run: python -m troi.cli test --junitxml=test_results.xml | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1.11 | |
if: ${{ always() }} | |
with: | |
files: test_results.xml |