Skip to content

Python API

Python API #22

Workflow file for this run

name: Python API
on:
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Build
run: python -m pip install -v ./library/python/
test:
name: Test
needs: build
runs-on: ubuntu-20.04
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Test
run: |
python -m pip install -v './library/python[test]'
pytest -rAv ./library/python/