Skip to content

Switch to Mediux API #22

Switch to Mediux API

Switch to Mediux API #22

Workflow file for this run

name: Testing
on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
os:
- ubuntu-latest
- macos-latest
- windows-latest
permissions:
contents: read
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Setup Python
run: uv python install ${{ matrix.python-version }}
- name: Install project
run: uv sync --group tests
- name: Run tests
env:
MEDIUX__BASE_URL: ${{ secrets.MEDIUX__BASE_URL }}
MEDIUX__TOKEN: ${{ secrets.MEDIUX__TOKEN }}
run: uv run pytest
collector:
if: always()
needs:
- pytest
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: echo job failed && exit 1