FEAT: Add panel it allowe schemas for OPMI Box Import #25
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
- 'pyproject.toml' | |
- '.github/workflows/ci.yaml' | |
- '.github/actions/asdf_tools/action.yaml' | |
- '.github/actions/python_dependencies/action.yaml' | |
- '.tool-versions' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
- 'pyproject.toml' | |
- '.github/workflows/ci.yaml' | |
- '.github/actions/asdf_tools/action.yaml' | |
- '.github/actions/python_dependencies/action.yaml' | |
- '.tool-versions' | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ci-$ {{github.ref }} | |
cancel-in-progress: true | |
jobs: | |
setup: | |
name: Python Setup | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/python_dependencies | |
black: | |
name: Format Python with Black | |
runs-on: ubuntu-22.04 | |
needs: setup | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/python_dependencies | |
# returns an error if black would reformat any file | |
- run: poetry run black . --check | |
mypy: | |
name: Type Check with MyPy | |
runs-on: ubuntu-22.04 | |
needs: setup | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/python_dependencies | |
# returns an error if mypy detects a type error | |
- run: poetry run mypy . | |
pylint: | |
name: Lint Python using pylint | |
runs-on: ubuntu-22.04 | |
needs: setup | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/python_dependencies | |
# returns an error if pylint detects any issues | |
- run: poetry run pylint src tests |