⬆ Bump the dependencies group in /src/templates/nlp with 5 updates #200
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: 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@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v3 | |
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] | |
make lint | |
- 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 .. | |