Skip to content

Encapsulate NFTestAssert class, rewrite tests (attempt 2) #33

Encapsulate NFTestAssert class, rewrite tests (attempt 2)

Encapsulate NFTestAssert class, rewrite tests (attempt 2) #33

Workflow file for this run

---
name: pytest
on:
pull_request:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
run: |
pytest test \
--doctest-modules \
--junitxml=junit/test-results.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: test-results.xml
path: junit/test-results.xml
if-no-files-found: error
# Use always() to always run this step to publish test results when
# there are test failures
if: ${{ always() }}