Skip to content

chore: add support for 3.12 #284

chore: add support for 3.12

chore: add support for 3.12 #284

Workflow file for this run

name: "Lint"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Lint
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Checkout specific submodules
run: |
cd ext_libs/vowpal_wabbit
git submodule update --init ext_libs/armadillo-code
git submodule update --init ext_libs/ensmallen
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
- name: Check formatting
run: black --check src tests
- name: Check docstrings
run: pydocstyle src
- name: Build and install package
run: pip install --verbose .
env:
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/ext_libs/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_FORCE_DOWNLOADED_BINARIES: true
- name: Generate type stubs
run: |
pybind11-stubgen vowpal_wabbit_next._core --no-setup-py
mv stubs/vowpal_wabbit_next/_core-stubs/__init__.pyi src/vowpal_wabbit_next/_core.pyi
rm -r stubs
- name: Check if stubs are different
run: git diff --exit-code