File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Integration Test
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - ' mini_copilot/**'
8+ - ' integration_tests/**'
9+ pull_request :
10+ paths :
11+ - ' mini_copilot/**'
12+ - ' integration_tests/**'
13+
14+ concurrency :
15+ group : ' integration-test'
16+ cancel-in-progress : false
17+
18+ jobs :
19+ integration_job :
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v4
25+
26+ - name : Set up Python 3.13.2
27+ uses : actions/setup-python@v4
28+ with :
29+ python-version : " 3.13.2"
30+
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install -r requirements.txt
35+ pip install requests beautifulsoup4 readability-lxml lxml pyperclip
36+
37+ - name : Run integration tests
38+ env :
39+ GITHUB_TOKEN_INTEGRATION : ${{ secrets.GITHUB_TOKEN_INTEGRATION }}
40+ run : |
41+ if [ -z "$GITHUB_TOKEN_INTEGRATION" ]; then
42+ echo "Skipping integration tests: GITHUB_TOKEN_INTEGRATION secret not set."
43+ exit 0
44+ fi
45+ export PYTHONPATH=$PYTHONPATH:.
46+ python3 -m unittest discover integration_tests
You can’t perform that action at this time.
0 commit comments