⬆️🪝 update pre-commit hooks #141
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: Briefly Test Bindings | |
on: | |
release: | |
types: [published] | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test_bindings: | |
name: Test Python bindings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: "3.9" | |
- name: Install package | |
run: | | |
pip install -U pip setuptools wheel | |
pip install .[tests] | |
- name: Test package | |
run: pytest test/python | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: pip install -q build | |
- name: Build sdist | |
run: python -m build --sdist | |
- name: Install sdist | |
run: pip install --verbose dist/*.tar.gz | |
env: | |
CC: "gcc-10" | |
CXX: "g++-10" | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: dist/*.tar.gz |