mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
32 lines
618 B
YAML
32 lines
618 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.12"
|
|
cache: "pip"
|
|
|
|
- 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
|
|
run: pytest
|