Skip to content

Merge pull request #23 from uclahs-cds/automation-create-release-1.0.2 #84

Merge pull request #23 from uclahs-cds/automation-create-release-1.0.2

Merge pull request #23 from uclahs-cds/automation-create-release-1.0.2 #84

Workflow file for this run

---
name: Run PyTest
on:
pull_request:
branches:
- main
push:
branches:
- main
- nwiltsie-reusable-workflows
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
pip install tox
tox -e py${{matrix.python-version}}
- name: Upload pytest test results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "pytest-${{ matrix.python-version }}.xml"
path: junit/test-results.xml
if-no-files-found: error