Update README.md #37
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 API | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Start Server | |
run: | | |
./start.sh & | |
sleep 10 | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run API Tests | |
run: | | |
pytest tests/test_api.py |