Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[PLUGIN]: JacLang FastAPI Initial Implementation #10

[PLUGIN]: JacLang FastAPI Initial Implementation

[PLUGIN]: JacLang FastAPI Initial Implementation #10

name: Run Plugin Tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-replica-set: test-rs
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
cd examples/plugins/jaclang_fastapi
pip install -e .
pip install pytest
- name: Run tests
run: |
cd examples/plugins/jaclang_fastapi
pytest