Skip to content

Merge pull request #210 from bennyz/http-tests #928

Merge pull request #210 from bennyz/http-tests

Merge pull request #210 from bennyz/http-tests #928

Workflow file for this run

name: "Run Tests"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
pull-requests: read
jobs:
pytest-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v1
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Run pytest
run: make test
# https://github.com/orgs/community/discussions/26822
pytest:
runs-on: ubuntu-latest
needs: [pytest-matrix]
if: ${{ always() }}
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}