This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
Fix .readthedocs.yml #147
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 chat app | |
on: [push] | |
defaults: | |
run: | |
working-directory: ./experiments/chat | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install ../../ | |
- name: Setup app | |
run: | | |
./manage.py migrate | |
./manage.py runserver & | |
- name: Run unit tests | |
run: pytest | |
- name: Run integration tests | |
run: curl http://localhost:8000/ |