-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.31 KB
/
PBM-CUSTOM.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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'