Merge pull request #500 from asn-d6/verify_doc_columns #28
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: Python | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build PyYAML | |
- name: Build BLST | |
run: | | |
cd src | |
make blst | |
- name: Build CKZG | |
run: | | |
cd src | |
make | |
- name: Build Python bindings | |
run: | | |
cd bindings/python | |
make install | |
- name: Test | |
run: | | |
cd bindings/python | |
make test | |
test-sdist: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build PyYAML | |
- name: Build sdist | |
run: python -m build --sdist | |
- name: Set up Visual Studio shell | |
if: runner.os == 'Windows' | |
uses: egor-tensin/vs-shell@v2 | |
- name: Install via sdist | |
working-directory: dist | |
run: pip install ckzg-*.tar.gz | |
- name: Run tests | |
run: make -C bindings/python test |