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

[Archive] Jaclang-jaseci V1.0.2 #196

[Archive] Jaclang-jaseci V1.0.2

[Archive] Jaclang-jaseci V1.0.2 #196

name: Run Plugin Tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
SHOW_ENDPOINT_RETURNS: true
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-replica-set: test-rs
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Run tests
run: |
jac run jaclang_jaseci/tests/fixtures/simple_walkerapi.jac &
jac run jaclang_jaseci/tests/fixtures/simple_walkerapi_manual.jac &
sleep 1
pytest