Skip to content

chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3 (#461) #983

chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3 (#461)

chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3 (#461) #983

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
lint-n-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ['3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test
- name: Install dependencies
if: steps.cache-python-env.outputs.cache-hit != 'true'
run: |
pip install --upgrade pip
pip install -e .[dev]
- name: Lint
run: |
make lint
- name: Install app
run: |
pip install -e .
cd ../..
- name: Create project using default template
run: |
fastapi-gen hello_world
cd hello_world
make lint
make test
cd ..
- name: Create project using "hello_world" template
run: |
fastapi-gen hello_world_v2 --template hello_world
cd hello_world_v2
make lint
make test
cd ..
- name: Create project using "nlp" template
run: |
fastapi-gen nlp --template nlp
cd nlp
make lint
make test
cd ..
- name: Create project using "langchain" template
run: |
fastapi-gen langchain_app --template langchain
cd langchain_app
make lint
make test
cd ..
- name: Create project using "llama" template
run: |
fastapi-gen llama_app --template llama
cd llama_app
make lint
make test
cd ..