Skip to content

feat: implement orb discovery #16

feat: implement orb discovery

feat: implement orb discovery #16

name: orb-discovery - lint and tests
on:
workflow_dispatch:
pull_request:
paths:
- "orb-discovery/**"
push:
branches:
- "!release"
paths:
- "orb-discovery/**"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
env:
BE_DIR: orb-discovery
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
python: [ "3.10", "3.11", "3.12" ]
defaults:
run:
working-directory: ${{ env.BE_DIR }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install .[dev]
pip install .[test]
- name: Run tests with coverage
run: |
set -o pipefail
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=orb_discovery/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ${{ env.BE_DIR }}/pytest-coverage.txt
junitxml-path: ${{ env.BE_DIR }}/pytest.xml
- name: Lint with Ruff
run: |
ruff check --output-format=github orb_discovery/ tests/
continue-on-error: true