-
-
Notifications
You must be signed in to change notification settings - Fork 984
39 lines (37 loc) · 942 Bytes
/
package-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: TikTokApi CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- nightly
- "releases/*"
jobs:
Unit-Tests:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
python-version: ["3.9", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
pip install pytest-asyncio
python -m playwright install
- name: Run Tests
env:
ms_token: ${{ secrets.ms_token }}
run: pytest tests