fix: catch pydantic panic exception when validating field with skip_v… #163
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- '**' | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
unit_test: | |
name: Unit Test Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Git with token to access other private repositories | |
run: git config --global url."https://${{ secrets.OTOMATOR_PAT }}@github".insteadOf https://github | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: '**/requirements*.txt' | |
- run: make ci-install | |
- run: make ci-code-qa | |
- run: make ci-test-unit | |
integration_test: | |
name: Unit and Integration Test Python 3.11 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Git with token to access other private repositories | |
run: git config --global url."https://${{ secrets.OTOMATOR_PAT }}@github".insteadOf https://github | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
cache-dependency-path: '**/requirements*.txt' | |
- run: make ci-install-latest | |
- run: make ci-test-unit | |
- run: make ci-test-integration | |
env: | |
WAYLAY_TEST_USER_ID: ${{vars.WAYLAY_TEST_USER_ID}} | |
WAYLAY_TEST_USER_SECRET: ${{secrets.WAYLAY_TEST_USER_SECRET}} |