-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (48 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
59 lines (48 loc) · 1.33 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
name: CI Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-interaction --no-root
- name: Run simple test
run: |
echo "Testing basic functionality..."
poetry run python -c "import src.client.base_client; print('Base client imports successfully')"
poetry run python -c "import src.utils.environment; print('Environment utils work')"
echo "Basic imports successful!"
- name: Run basic pytest
run: |
poetry run pytest --version
echo "pytest is working"
notify:
needs: [test]
runs-on: ubuntu-latest
if: always()
steps:
- name: Notify on success
if: ${{ needs.test.result == 'success' }}
run: |
echo "✅ Basic CI checks passed!"
- name: Notify on failure
if: ${{ needs.test.result == 'failure' }}
run: |
echo "❌ CI checks failed!"
exit 1