-
Notifications
You must be signed in to change notification settings - Fork 3
98 lines (79 loc) · 2.29 KB
/
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
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
name: ✅ Test
on:
pull_request:
types: [opened, reopened, edited, synchronize, closed]
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GITHUB_PAT_SMILECDR: ${{ secrets.GH_PAT_SMILECDR }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
jobs:
test-dev-setup:
runs-on: ubuntu-20.04
timeout-minutes: 10
permissions:
packages: read
steps:
- name: 👩💻 Checkout code
uses: actions/checkout@v3
- name: 🐍 Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: 📦 Install deps
run: |
pip install --upgrade virtualenv
- name: ✅ Test quickstart
run: |
./src/bin/quickstart.sh --delete-volumes
test-local-integration:
runs-on: ubuntu-20.04
timeout-minutes: 10
permissions:
packages: read
steps:
- name: 👩💻 Checkout code
uses: actions/checkout@v3
- name: 🐳 Start docker-compose
run: |
cp env.sample .env
source .env
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker-compose pull --ignore-pull-failures
docker-compose up -d
- name: 🚑 Healthcheck
run: |
source .env
./src/bin/health-check.sh
- name: 🐍 Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: 📦 Install deps
run: |
pip install --upgrade virtualenv
virtualenv -p python3 venv
source venv/bin/activate
pip install -r dev-requirements.txt
pip install -e .
- name: ✅ Local Integration Test
run: |
source venv/bin/activate
pytest tests
test-smilecdr-auth:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: 👩💻 Checkout code
uses: actions/checkout@v3
- name: 📦 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.15.0'
- name: 📦 Install deps
run: |
npm install --prefix ./tests/javascript
- name: ✅ Test auth module
run: |
./bin/run_js_tests.sh