This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
[Archive] Jaclang-jaseci V1.0.2 #195
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: 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 | |