build(deps-dev): bump ruff from 0.5.0 to 0.5.1 (#183) #502
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: scripts | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
test-e2e: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: "1.8.2" | |
- name: Resolve dependencies | |
run: poetry export -f requirements.txt --without-hashes --output requirements.txt | |
- name: Build & run docker | |
env: | |
SUPERADMIN_GH_PAT: ${{ secrets.SUPERADMIN_GH_PAT }} | |
GH_OAUTH_ID: ${{ secrets.GH_OAUTH_ID }} | |
GH_OAUTH_SECRET: ${{ secrets.GH_OAUTH_SECRET }} | |
OLLAMA_MODEL: tinydolphin:1.1b-v2.8-q3_K_M | |
run: | | |
docker compose -f docker-compose.dev.yml up -d --build --wait | |
nc -vz localhost 5050 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade uv | |
uv pip install --system "requests>=2.31.0,<3.0.0" python-dotenv | |
- name: Run integration test | |
env: | |
SUPERUSER_LOGIN: superadmin_login | |
SUPERUSER_PWD: superadmin_pwd | |
run: python scripts/test_e2e.py --endpoint http://localhost:5050/api/v1 |