Skip to content

PBM-CUSTOM

PBM-CUSTOM #38

Workflow file for this run

name: PBM-CUSTOM
on:
workflow_dispatch:
inputs:
psmdb:
description: "psmdb docker image"
required: false
pbm_branch:
description: "pbm branch"
required: false
go_ver:
description: "golang version"
required: false
test:
description: "any tests with pytest parameters"
required: false
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
PSMDB: ${{ github.event.inputs.psmdb || 'percona/percona-server-mongodb' }}
PBM_BRANCH: ${{ github.event.inputs.pbm_branch || 'main' }}
GO_VER: ${{ github.event.inputs.go_ver || 'bullseye' }}
TEST: ${{ github.event.inputs.test || '-k logical --verbose test_sharded.py' }}
steps:
- uses: actions/checkout@v4
- name: Setup environment
run: |
docker compose build
docker compose up -d
working-directory: ./pbm-functional/pytest
- name: Test ${{ env.TEST }} on PSMDB ${{ env.PSMDB }} PBM branch ${{ env.PBM_BRANCH }}
run: |
docker compose run --rm test pytest -s --junitxml=junit.xml ${{ env.TEST }}
working-directory: ./pbm-functional/pytest
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/junit.xml'
exclude_sources: ['/.pytest_cache/', '/__pycache__/']

Check failure on line 44 in .github/workflows/PBM-CUSTOM.yml

View workflow run for this annotation

GitHub Actions / PBM-CUSTOM

Invalid workflow file

The workflow is not valid. .github/workflows/PBM-CUSTOM.yml (Line: 44, Col: 26): A sequence was not expected

Check failure on line 44 in .github/workflows/PBM-CUSTOM.yml

View workflow run for this annotation

GitHub Actions / PBM-CUSTOM

Invalid workflow file

The workflow is not valid. .github/workflows/PBM-CUSTOM.yml (Line: 44, Col: 26): A sequence was not expected