Skip to content

DBClient has a get_items method that pages through results from api #107

DBClient has a get_items method that pages through results from api

DBClient has a get_items method that pages through results from api #107

Workflow file for this run

name: Run Tests
on: push
jobs:
test-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env file
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/[email protected]
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'
- run: poetry install
- name: setup pytest.ini
run: mv .github/pytest.ini pytest.ini
- name: Linting
run: poetry run ruff check
- name: Run tests
env:
CI: "true"
run: poetry run pytest
test-bash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/[email protected]
- name: Setup Shell Mock
run: wget -P /opt/ https://github.com/boschresearch/shellmock/releases/download/0.9.1/shellmock.bash
- run: ls /opt
- name: Run tests
shell: bash
env:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
SHELLMOCK_PATH: /opt/shellmock.bash
TERM: xterm
run: bats ./bin/**/*_test.sh