Skip to content

⬆️🪝 update pre-commit hooks (#25) #95

⬆️🪝 update pre-commit hooks (#25)

⬆️🪝 update pre-commit hooks (#25) #95

Workflow file for this run

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@v4
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@v4
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