Skip to content

feat(examples): runnable end-to-end demo on the real SDK #2

feat(examples): runnable end-to-end demo on the real SDK

feat(examples): runnable end-to-end demo on the real SDK #2

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0 OR MIT
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint (ruff)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff (pinned)
run: pip install ruff==0.15.15
- name: ruff check
run: ruff check axonos tests examples
test:
name: Test (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: pip install -e .
- name: Run unit tests
run: python -m unittest discover -s tests -v
build:
name: Build (sdist + wheel)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build
run: pip install build
- name: Build distributions
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*