options: fix mypy warning / init fn_exclude_by_name_and_signature & m… #58
Workflow file for this run
This file contains hidden or 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: "pip" | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
build: | |
name: Build with Pip | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: pip install -r requirements-dev.txt | |
run: pip install -r requirements-dev.txt | |
- name: pip install --verbose . | |
run: pip install --verbose . | |
- name: pip install in src/litgen/integration_tests/ | |
run: | | |
cd src/litgen/integration_tests | |
python autogenerate_mylib.py | |
pip install -v . | |
cd - | |
- name: pytest | |
run: pytest | |
- name: black | |
run: black . | |
- name: mypy | |
run: mypy . | |
- name: Build C++ | |
run: | | |
cmake --version | |
mkdir -p build | |
cd build | |
cmake .. | |
cmake --build . -j 4 | |
- name: pip install in _litgen_template/ | |
run: | | |
cd _litgen_template | |
python tools/autogenerate_bindings.py | |
pip install -v . | |
black . | |
mypy . | |
pytest |