Skip to content

Add chat tutorial command #281

Add chat tutorial command

Add chat tutorial command #281

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pytest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_SCRIPT: build-protos.sh
PYTEST_SCRIPT: scripts/pytest.sh
jobs:
pytest:
environment: soru-sora
runs-on: ubuntu-latest
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
ROOT_PATH: sorusora
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
with:
docker-images: false
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ runner.temp }}/cache
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install ffmpeg libsm6 libxext6 -y
python -m pip install --upgrade pip
pip install -r $ROOT_PATH/requirements.txt
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: "7.0.5"
- name: Test with pytest
run: |
cd $ROOT_PATH
chmod +x ${{ env.BUILD_SCRIPT }}
./${{ env.BUILD_SCRIPT }}
chmod +x ${{ env.PYTEST_SCRIPT }}
./${{ env.PYTEST_SCRIPT }}