[feat]: add pydantic decoratore for input validation #4
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
# This workflow will build the package and validate it (e.g. inspect code formatting, run tests) against multiple Python versions and OSs. | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python v${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==1.5.1 | |
- name: Install Package Dependencies (required and dev) | |
run: | | |
poetry check | |
poetry install | |
- name: Inspect Code Formatting | |
run: | | |
poetry run black . --check | |
poetry run isort . --check | |
# - name: Run Tests | |
# run: | | |
# poetry run pytest |