-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (46 loc) · 1.24 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
55
56
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
- name: Check out odp-ui
uses: actions/checkout@v4
with:
repository: SAEON/odp-ui
path: odp-ui
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
working-directory: odp-server
run: |
python -m pip install --upgrade pip pip-tools
pip-sync
- name: Set up testing environment
working-directory: odp-server/test
shell: bash
run: |
cp .env.test .env
docker-compose up -d
sleep 30s
- name: Run the tests
working-directory: odp-server/test
run: |
coverage run -m pytest
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
directory: odp-server/test
token: ${{ secrets.CODECOV_TOKEN }}