Skip to content

Commit dd8f73d

Browse files
committed
feat: separate integration tests into independent workflow
1 parent 0f5a91f commit dd8f73d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/integration.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

0 commit comments

Comments
 (0)