This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
ci: Remove daily tests #46
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
environment: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Lint with ruff | |
run: poetry run ruff . | |
- name: Test with pytest | |
env: | |
SESSION_TOKEN: ${{ secrets.SESSION_TOKEN }} | |
CONVERSATION_ID: ${{ secrets.CONVERSATION_ID }} | |
run: poetry run pytest sengpt/re_gpt/async_/test.py -v |