-
Notifications
You must be signed in to change notification settings - Fork 925
109 lines (92 loc) · 4.62 KB
/
Copy pathlive-account-tests.yml
File metadata and controls
109 lines (92 loc) · 4.62 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Live Account Tests
on:
workflow_dispatch:
inputs:
test_target:
description: "Which live test target to run"
required: true
default: "media"
type: choice
options:
- media
- comment
- upload
- direct
- signup
- timeline
- fbsearch
- story-location
- location
- usertag
- user
- all
env:
PYTHON_VERSION: "3.13.5"
jobs:
live-test:
runs-on: ubuntu-latest
env:
TEST_ACCOUNTS_URL: ${{ secrets.TEST_ACCOUNTS_URL }}
IG_SIGNUP_EMAIL: ${{ secrets.IG_SIGNUP_EMAIL }}
IG_SIGNUP_EMAIL_COMMAND: ${{ secrets.IG_SIGNUP_EMAIL_COMMAND }}
IG_SIGNUP_EMAIL_CODE: ${{ secrets.IG_SIGNUP_EMAIL_CODE }}
IG_SIGNUP_EMAIL_CODE_COMMAND: ${{ secrets.IG_SIGNUP_EMAIL_CODE_COMMAND }}
IG_SIGNUP_PHONE_NUMBER: ${{ secrets.IG_SIGNUP_PHONE_NUMBER }}
IG_SIGNUP_SMS_CODE: ${{ secrets.IG_SIGNUP_SMS_CODE }}
IG_SIGNUP_SMS_CODE_COMMAND: ${{ secrets.IG_SIGNUP_SMS_CODE_COMMAND }}
steps:
- name: Check out code
uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
test: "true"
- name: Run media test
if: github.event.inputs.test_target == 'media' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_media.py::ClientMediaTestCase tests/live/test_comments.py::ClientCommentRepliesLiveTestCase
- name: Run comment write test
if: github.event.inputs.test_target == 'comment' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_comments.py::ClientCommentExtendTestCase::test_media_comment
- name: Run upload live tests
if: github.event.inputs.test_target == 'upload' || github.event.inputs.test_target == 'all'
run: |
pytest -sv \
tests/live/test_upload.py::ClienUploadTestCase::test_clip_upload_show_preview_in_feed_false_live \
tests/live/test_upload.py::ClientFeedMusicUploadLiveTestCase \
tests/live/test_upload.py::ClientTrialReelUploadLiveTestCase \
tests/live/test_upload.py::ClientFacebookReelCrosspostLiveTestCase
- name: Run direct media test
if: github.event.inputs.test_target == 'direct' || github.event.inputs.test_target == 'all'
run: |
pytest -sv \
tests/live/test_direct.py::ClientDirectTestCase::test_direct_search_live \
tests/live/test_direct.py::ClientDirectTestCase::test_direct_media_live \
tests/live/test_direct.py::ClientDirectMediaLiveTestCase \
tests/live/test_direct.py::ClientDirectThreadLiveTestCase::test_direct_thread_add_users_live
- name: Run signup live tests
if: github.event.inputs.test_target == 'signup' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_signup.py::SignUpTestCase
- name: Run timeline test
if: github.event.inputs.test_target == 'timeline' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_timeline.py::ClientTimelineLiveTestCase
- name: Run fbsearch test
if: github.event.inputs.test_target == 'fbsearch' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_fbsearch.py::ClientFbSearchLiveTestCase
- name: Run story location sticker live test
if: github.event.inputs.test_target == 'story-location' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_story.py::ClientStoryLocationStickerLiveTestCase
- name: Run location test
if: github.event.inputs.test_target == 'location' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_location.py::ClientLocationPaginationLiveTestCase
- name: Run usertag pagination test
if: github.event.inputs.test_target == 'usertag' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_user.py::ClientUsertagPaginationLiveTestCase
- name: Run user test
if: github.event.inputs.test_target == 'user' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_user.py::ClientUserTestCase tests/live/test_user.py::ClientGraphQLQueryLiveTestCase
- name: Run follow request live test
if: github.event.inputs.test_target == 'user' || github.event.inputs.test_target == 'all'
run: pytest -sv tests/live/test_user.py::ClientFollowRequestLiveTestCase