fix, python: do not manually specify custom license file #480
Workflow file for this run
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: python | |
on: | |
pull_request: | |
paths: | |
- "generators/python/**" | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install Dependencies | |
working-directory: ./generators/python | |
run: poetry install | |
- name: Type check | |
working-directory: ./generators/python | |
run: poetry run mypy | |
- name: pre-commit | |
working-directory: ./generators/python | |
run: poetry run pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install Dependencies | |
working-directory: ./generators/python | |
run: poetry install | |
- name: Update models for testing | |
working-directory: ./generators/python | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
npm install -g fern-api | |
docker build -f ./pydantic/Dockerfile -t ferntest/fern-pydantic-model:0.0.0 . | |
cd tests/utils/example_models | |
fern generate --group dummy_types --local | |
- name: Unit Test | |
working-directory: ./generators/python | |
run: poetry run pytest -sv |