Skip to content

Bump pytest from 8.3.2 to 8.3.3 (#163) #354

Bump pytest from 8.3.2 to 8.3.3 (#163)

Bump pytest from 8.3.2 to 8.3.3 (#163) #354

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install project
run: pip install -e .[dev,test]
- name: run pre-commit
run: "pre-commit run --all"
ci-test:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
sphinx-version: ["6.*", "7.*", "8.*"]
exclude:
# sphinx 8 does not support python 3.8
- sphinx-version: "8.*"
python-version: "3.8"
# sphinx 8 does not support python 3.9
- sphinx-version: "8.*"
python-version: "3.9"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: pip install -e .[test]
- name: Install sphinx
run: pip install sphinx==${{ matrix.sphinx-version }}
- name: setup selenium container
run: docker run -d -p 4444:4444 -p 7900:7900 --network host --shm-size="2g" selenium/standalone-chrome:120.0
- name: Wait for selenium container
run: "while ! curl -sSL http://localhost:4444/wd/hub/status | jq .value.ready | grep true; do sleep 1; done"
- name: run tests (with coverage)
run: "pytest --cov swagger_plugin_for_sphinx --cov-report html --cov-report xml tests/"
- name: run diff-cover
run: "diff-cover --config-file pyproject.toml coverage.xml"