mirror of
https://github.com/vibe-existing/pyfragment.git
synced 2026-07-25 06:54:31 +00:00
refactor: enhance test workflow and integration tests with cookies handling and configuration checks
This commit is contained in:
@@ -21,7 +21,18 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt pytest pytest-asyncio
|
||||
|
||||
- name: Write cookies.json
|
||||
if: ${{ env.COOKIES_JSON != '' }}
|
||||
run: echo "$COOKIES_JSON" > cookies.json
|
||||
env:
|
||||
COOKIES_JSON: ${{ secrets.COOKIES_JSON }}
|
||||
|
||||
- name: Run tests
|
||||
if: github.ref != 'refs/heads/master'
|
||||
run: pytest --ignore=tests/003_test_integration.py
|
||||
|
||||
- name: Run tests (master — full suite)
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: pytest
|
||||
env:
|
||||
SEED: ${{ secrets.SEED }}
|
||||
|
||||
Reference in New Issue
Block a user