| 1 |
name: tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
pull_request: |
| 8 |
|
| 9 |
jobs: |
| 10 |
test: |
| 11 |
timeout-minutes: 45 |
| 12 |
defaults: |
| 13 |
run: |
| 14 |
shell: bash |
| 15 |
runs-on: ${{ matrix.os }} |
| 16 |
strategy: |
| 17 |
fail-fast: false |
| 18 |
matrix: |
| 19 |
os: [ubuntu-latest] |
| 20 |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
| 21 |
env: |
| 22 |
OS: ${{ matrix.os }} |
| 23 |
PYTHON: ${{ matrix.python-version }} |
| 24 |
|
| 25 |
steps: |
| 26 |
- name: Check out repository |
| 27 |
uses: actions/checkout@v4 |
| 28 |
|
| 29 |
- name: Set up python ${{ matrix.python-version }} |
| 30 |
uses: actions/setup-python@v5 |
| 31 |
with: |
| 32 |
python-version: ${{ matrix.python-version }} |
| 33 |
|
| 34 |
- name: Install library |
| 35 |
run: | |
| 36 |
pip install -e . |
| 37 |
pip install pytest pytest-coverage |
| 38 |
|
| 39 |
- name: Run tests |
| 40 |
run: | |
| 41 |
python -m pytest --cov=rich_rst --cov-report term --cov-report xml --junitxml=testresults.xml |
| 42 |
coverage report |