| 1 | name: Tests |
| 2 | |
| 3 | on: |
| 4 | - push |
| 5 | - pull_request |
| 6 | |
| 7 | jobs: |
| 8 | build: |
| 9 | runs-on: ubuntu-latest |
| 10 | strategy: |
| 11 | fail-fast: false |
| 12 | matrix: |
| 13 | python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
| 14 | |
| 15 | steps: |
| 16 | - uses: actions/checkout@v6 |
| 17 | |
| 18 | - name: Install uv and set the Python version |
| 19 | uses: astral-sh/setup-uv@v7 |
| 20 | with: |
| 21 | enable-cache: true |
| 22 | python-version: ${{ matrix.python-version }} |
| 23 | |
| 24 | - name: Install project |
| 25 | run: uv sync --locked --dev |
| 26 | |
| 27 | - name: Run tests |
| 28 | run: uv run pytest --cov=ansimarkup tests |