Skip to content

build(deps): bump actions/setup-python from 4 to 5 #158

build(deps): bump actions/setup-python from 4 to 5

build(deps): bump actions/setup-python from 4 to 5 #158

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', pypy-3.9]
exclude:
# https://www.lfd.uci.edu/~gohlke/pythonlibs/ has no permalinks.
- os: windows-latest
python-version: '3.11'
- os: windows-latest
python-version: pypy-3.9
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.cfg
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 'pypy-3.9'
run: |
sudo apt update
sudo apt install libxml2-dev libxslt-dev
- run: pip install .[test]
# Avoid DeprecationWarning from MyST-Parser 1.0.0.
# https://github.com/executablebooks/MyST-Parser/issues/612
- run: pytest -W error -W ignore::DeprecationWarning --cov sphinxcontrib.opencontracting
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github