Bump actions/setup-python from 4 to 5 (#8) #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo add-apt-repository -u -y ppa:s-ramacher/ait | |
sudo apt-get install librelic-dev pkg-config | |
python -m pip install --upgrade pip | |
pip install pytest pkgconfig "cython >= 0.28" | |
- name: Build with Python ${{ matrix.python-version }} | |
run: | | |
python setup.py build | |
python setup.py build_ext -i | |
- name: Test with pytest | |
run: | | |
pytest . |