-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (44 loc) · 1.13 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out odp-server
uses: actions/checkout@v4
with:
path: odp-server
- name: Check out odp-core
uses: actions/checkout@v4
with:
repository: SAEON/odp-core
path: odp-core
ref: dev
- name: Check out odp-ui
uses: actions/checkout@v4
with:
repository: SAEON/odp-ui
path: odp-ui
ref: dev
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync
- name: Set up testing environment
working-directory: ./test
shell: bash
run: |
cp .env.test .env
docker-compose up -d
sleep 30s
- name: Run the tests
working-directory: ./test
run: |
coverage run -m pytest
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3