Run tests on macOS in GitHub Actions (#13284)

This commit is contained in:
Adam Turner 2025-01-31 14:17:06 +00:00 committed by GitHub
parent 8e26fd7d93
commit ad9de97a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,6 +202,35 @@ jobs:
env:
PYTHONWARNINGS: "error" # treat all warnings as errors
macos:
runs-on: macos-latest
name: macOS
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3"
- name: Check Python version
run: python --version --version
- name: Install graphviz
run: brew install graphviz
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install .[test]
- name: Test with pytest
run: python -m pytest -vv --durations 25
env:
PYTHONWARNINGS: "error" # treat all warnings as errors
docutils-latest:
runs-on: ubuntu-latest
name: Docutils HEAD