ci: Try Python 3.6 #140
Workflow file for this run
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
- expand-ci-matrix # TODO: REMOVE | |
jobs: | |
format: | |
name: Format code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install requirements | |
run: pip install -r requirements-dev.txt | |
- name: Run isort | |
run: isort --check --profile=black --diff ./pybind11_stubgen | |
if: ${{ failure() || success() }} | |
- name: Run black | |
run: black --diff ./pybind11_stubgen | |
if: ${{ failure() || success() }} | |
- name: Run flake8 | |
run: | | |
flake8 \ | |
--max-line-length=88 \ | |
--extend-ignore=E203 \ | |
--extend-exclude=venv/,.pytest_cache/,.ipynb_checkpoints/,tests/,tmp/,build/ | |
if: ${{ failure() || success() }} | |
tests: | |
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }}" | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# - runs-on: "windows-2022" | |
# python: "3.11" | |
# pybind11-branch: "master" | |
# - runs-on: "ubuntu-latest" | |
# python: "3.11" | |
# pybind11-branch: "master" | |
# - runs-on: "ubuntu-latest" | |
# python: "3.10" | |
# pybind11-branch: "master" | |
# - runs-on: "ubuntu-latest" | |
# python: "3.9" | |
# pybind11-branch: "master" | |
# - runs-on: "ubuntu-latest" | |
# python: "3.8" | |
# pybind11-branch: "master" | |
# - runs-on: "ubuntu-latest" | |
# python: "3.7" | |
# pybind11-branch: "master" | |
- runs-on: "ubuntu-20.04" | |
python: "3.6" | |
pybind11-branch: "master" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Update CMake | |
uses: jwlawson/[email protected] | |
- name: Setup annotations on Linux | |
if: runner.os == 'Linux' | |
run: python -m pip install pytest-github-actions-annotate-failures | |
- name: Install requirements | |
run: pip install -r "./tests/stubs/python-${{ matrix.python }}/requirements.txt" | |
- name: Install pybind11-stubgen | |
run: pip install . | |
- name: Run tests | |
run: > | |
./tests/run-tests.sh \ | |
--pybind11-branch "${{ matrix.pybind11-branch }}" \ | |
--stubs-sub-dir "stubs/python-${{ matrix.python }}/pybind11-${{ matrix.pybind11-branch }}" \ |