Skip to content

cmake build

cmake build #153

Workflow file for this run

name: CI-Test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
test:
name: Tests
runs-on: ${{ matrix.host-os }}
needs: lint
strategy:
matrix:
host-os: ["ubuntu-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
set -vxeuo pipefail
bash ./scripts/install-deps.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*.whl
- name: Test with pytest
run: |
set -vxeuo pipefail
bash ./scripts/run-tests.sh
docs:
name: Documentation
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
python-version: [3.8]
fail-fast: false
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
set -vxeuo pipefail
bash ./scripts/install-deps.sh
- name: Build Docs
run: |
set -vxeuo pipefail
bash ./scripts/build-docs.sh
- uses: actions/upload-artifact@v3
with:
name: ${{ env.REPOSITORY_NAME }}-docs
path: docs/build/html/