Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: Test validation
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Install pip and pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
run: pytest -s --html=reports/${{ matrix.python-version }}/report.html
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: reports/${{ matrix.python-version }}/
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}