Add test scenarios written by jsenko. #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Python SDK | |
on: | |
push: | |
paths-ignore: | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README*' | |
- 'docs/**' | |
- '.github/workflows/**' | |
branches: [main, '[1-9].[0-9].x'] | |
pull_request: | |
paths-ignore: | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README*' | |
- 'docs/**' | |
branches: [main] | |
jobs: | |
build-verify: | |
name: Verify Python SDK | |
runs-on: ubuntu-20.04 | |
# if: github.repository_owner == 'Apicurio' && !contains(github.event.*.labels.*.name, 'DO NOT MERGE') | |
steps: | |
- name: Checkout Code with Ref '${{ github.ref }}' | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry | |
uses: snok/install-poetry@d45b6d76012debf457ab49dffc7fb7b2efe8071d | |
- name: Install the package | |
working-directory: python-sdk | |
run: make install | |
- name: Check linting | |
working-directory: python-sdk | |
run: make lint-check | |
- name: Build Registry | |
run: mvn clean install -am -pl app -Dskip.npm -DskipTests=true --no-transfer-progress | |
- name: Run the tests | |
working-directory: python-sdk | |
run: make test |