V03 foreground with patterns won't start/is broken. #307
Workflow file for this run
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: Unit Testing | |
on: | |
pull_request: | |
types: [opened, edited, reopened] | |
push: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
osver: [ "ubuntu-20.04", "ubuntu-22.04" ] | |
runs-on: ${{ matrix.osver }} | |
name: Unit test on ${{ matrix.osver }} | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
pip install -r tests/requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest tests --junitxml=tests/junit/test-results.xml \ | |
--cov-config=tests/.coveragerc --cov=sarracenia --cov-report=html --cov-report=lcov --cov-report=xml \ | |
--html=tests/report.html --self-contained-html | |
- name: Upload pytest junit results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: results-junit-${{ matrix.osver }} | |
path: tests/junit/test-results.xml | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} | |
- name: Upload pytest HTML report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: results-report-${{ matrix.osver }} | |
path: tests/report.html | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} | |
- name: Upload code coverage report (HTML) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report-${{ matrix.osver }} | |
path: tests/coverage/html_report | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} | |
- name: Upload code coverage report (LCOV) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-lcov-${{ matrix.osver }} | |
path: tests/coverage/coverage.lcov | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} | |
- name: Upload code coverage report (XML) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-xml-${{ matrix.osver }} | |
path: tests/coverage/coverage.xml | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |